How To Install Live Helper Chat on CentOS 7

Live Helper Chat on CentOS 7

Live helper chat is a free, flexible, and open-source live support chat for your website. It is written in PHP and uses MySQL/MariaDB to store its data. It provides lots of features such as online user tracking, multiple chats, archive chat, user screenshots, file upload and much more. It provides desktop clients for operators and also supports XMPP. It is widely used on many websites.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LAMP server.

Step 3. Installing Live Helper Chat.

Step 4. Configuring MariaDB for Live Helper Chat.

Step 5. Configuring Apache web server for Live Helper Chat.

Step 7. Accessing Live Helper Chat.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Live Helper Chat on a CentOS 7 server.
Install Live Helper Chat on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Install LAMP server.

A CentOS 7 LAMP stack server is required. If you do not have LAMP installed, you can follow our guide here. Also install required PHP modules:

yum -y install php-gd php-imap php-ldap php-pear php-xml php-xmlrpc php-mbstring php-mcrypt curl curl-devel

Step 3. Installing Live Helper Chat.

First thing to do is to go to Live Helper Chat’s download page and download the latest stable version of Live Helper Chat:

wget https://github.com/remdex/livehelperchat/archive/master.zip

After downloading Concrete5 you will need to unzip master.zip. To do this, run:

unzip master.zip
mv livehelperchat-master /var/www/html/livechat

We will need to change some folders permissions:

chown -R apache:apache /var/www/html/livechat

Step 4. Configuring MariaDB for Live Helper Chat.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the Live Helper Chat. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Concrete5 installation:

MariaDB [(none)]>CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]>GRANT ALL PRIVILEGES ON livechatdb.* TO 'user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
MariaDB [(none)]>FLUSH PRIVILEGES;
MariaDB [(none)]>exit;

Step 5. Configuring Apache web server for Live Helper Chat.

We will create Apache virtual host for your Live Helper Chat website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with using a text editor of your choice:

nano /etc/httpd/conf.d/vhosts.conf
IncludeOptional vhosts.d/*.conf

Next, create the virtual host:

mkdir /etc/httpd/vhosts.d/
nano /etc/httpd/vhosts.d/yourdomain.com.conf

Add the following lines:

ServerAdmin [email protected]
DocumentRoot "/var/www/html/livechat/lhc_web"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/livechat/lhc_web">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Save and close the file. Restart the Apache service for the changes to take effects:

systemctl restart httpd.service

Next step, we should allow HTTP traffic on port 80 through firewalld. You can do this by running the following command:

firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload

Step 7. Accessing Live Helper Chat.

Live Helper Chat will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Live Helper Chat. Thanks for using this tutorial for installing Live Helper Chat on CentOS 7 system. For additional help or useful information, we recommend you to check the official Live Helper Chat web site.

How To Install Concrete5 on CentOS 7

Concrete5 on CentOS 7

Concrete5 is one of the most popular content management systems available on thhe Internet. It is written in PHP and uses MySQL or MariaDB to store its data. It comes with an easy to use website builder through which you can easily create pages and content. Concrete5 is flexible, secure and mobile ready.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LAMP server.

Step 3. Installing Concrete5.

Step 4. Configuring MariaDB for Concrete5.

Step 5. Configuring Apache web server for Concrete5.

Step 7. Accessing Concrete5.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Concrete5 open source CMS on a CentOS 7 server.
Install Concrete5 on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Install LAMP server.

A CentOS 7 LAMP stack server is required. If you do not have LAMP installed, you can follow our guide here. Also install required PHP modules:

yum -y install php-gd php-imap php-ldap php-pear php-xml php-xmlrpc php-mbstring php-mcrypt curl curl-devel

Step 3. Installing Concrete5.

First thing to do is to go to Concrete5’s download page and download the latest stable version of Concrete5:

wget https://core-releases.s3.amazonaws.com/9314/8193/0256/concrete5-8.0.3.zip

After downloading Concrete5 you will need to unzip master.zip. To do this, run:

unzip concrete5-8.0.3.zip
mv concrete5-8.0.3 /var/www/html/concrete

We will need to change some folders permissions:

chown -R apache:apache /var/www/html/concrete

Step 4. Configuring MariaDB for Concrete5.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the Concrete5. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Concrete5 installation:

MariaDB [(none)]>CREATE USER 'concrete_user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]>GRANT ALL PRIVILEGES ON concretedb.* TO 'concrete_user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
MariaDB [(none)]>FLUSH PRIVILEGES;
MariaDB [(none)]>exit;

Step 5. Configuring Apache web server for Concrete5.

We will create Apache virtual host for your Concrete5 website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with using a text editor of your choice:

nano /etc/httpd/conf.d/vhosts.conf
IncludeOptional vhosts.d/*.conf

Next, create the virtual host:

mkdir /etc/httpd/vhosts.d/
nano /etc/httpd/vhosts.d/yourdomain.com.conf

Add the following lines:

ServerAdmin [email protected]
DocumentRoot "/var/www/html/concrete/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/concrete/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted

Save and close the file. Restart the Apache service for the changes to take effects:

systemctl restart httpd.service

Next step, we should allow HTTP traffic on port 80 through firewalld. You can do this by running the following command:

firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload

Step 7. Accessing Concrete5.

Concrete5 will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Concrete5. Thanks for using this tutorial for installing Concrete5 content management systems on CentOS 7 system. For additional help or useful information, we recommend you to check the official Concrete5 web site.

How To Install SimpleNote on CentOS 7

SimpleNote on CentOS 7

SimpleNote is an open-source alternative to EverNote. It’s free, lightweight and available for Linux, Mac, Windows, Android, iOS and the web. SimpleNote is developed by Automattic, the same company behind WordPress blogging platform.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 3. Installing SimpleNote on CentOS 7.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation SimpleNote on a CentOS 7 server.
SimpleNote Features

Your notes stay updated across all your devices while no buttons are pressed
Find notes quickly with instant searching as well as simple tags
Share a list, post some instructions, or publish your thoughts
Your notes are backed up when you change them. Just drag the version slider to go back in time
Type what you’re looking for, and your list updates instantly. You’ll never misplace an important thought again
Notes can be backed up, synced and shared – it’s all completely free
History: drag the History slider to view previous versions.
Collaboration: share your note with others as well as allowing them to edit.
Publishing: make your note public with its own URL.
Tags: organize your notes effectively with tags.
Pinning: pin notes right from the note list so they’re easy to find.

Install SimpleNote on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 3. Installing SimpleNote on CentOS 7.

The first thing to do is to go to SimpleNote’s download page and download the latest stable version of SimpleNote, At the moment of writing this article it is version 1.0.8:

wget https://github.com/Automattic/simplenote-electron/releases/download/v1.0.8/Simplenote-linux-x64.1.0.8.tar.gz

Run the simply command to install SimpleNote:

tar -xvf Simplenote-linux-x64.1.0.8.tar.gz
cd Simplenote-linux*
./Simplenote

Once installed, next you can start SimpleNote by searching for it Unity Dash. If the app icon doesn’t show up, try logging out and logging back in.
install-simplenote-on-linux
Congratulations! You have successfully installed simplenote. Thanks for using this tutorial for installing simplenote in CentOS 7 systems. For additional help or useful information, we recommend you to check the official simplenote web site.

How To Install Drush for Drupal on CentOS 7

Drush for Drupal on CentOS 7

Drush is “a command line shell and scripting interface for Drupal. ” It is short for Drupal Shell. It’s possible to use Drush to get into Drupal, set up Drupal with a default or custom install profile, manage Drupal modules, sync a local Drupal website with distant staging and production servers, and a lot more.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Drush.

Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Drush for Drupal on a CentOS 7 server.
Install Drush for Drupal on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Drush.

Method 1.

Install Composer.
Installing Drush CLi for Drupal7 on CentOS.

composer global require drush/drush

If you want to install specific version of Drush follow the below command. For example Drush 7.1.0:

composer global require drush/drush:7.1.0

Verify Drush using below command:

drush status

Update latest release:

composer global update

Method 2.

Run the below command to install pear:

yum install php-pear

Now run the following command to allow pear to recognize drush:

pear channel-discover pear.drush.org

Then install drush using below command:

pear install drush/drush

Verify Drush using below command:

drush status

Congratulation’s! You have successfully installed Drush for Drupal. Thanks for using this tutorial for installing Drush for Drupal on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Drush for Drupal web site.

How To Install Let’s Encrypt SSL With Lighttpd on CentOS 7

Let’s Encrypt SSL With Lighttpd on CentOS 7

LetsEncrypt is a free open certificate authority (CA) that provides free certificates for websites and other services. The service, which is backed by the Electronic Frontier Foundation, Mozilla, Cisco Systems, and Akamai. Unfortunately, LetsEncrypt.org certificates currently have a 3 month lifetime. This means you’ll need to renew your certificate quarterly for now.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Let’s Encrypt SSL using Certbot.

Step 3. Configure Lighttpd For Your New Cert.

Step 4. Force HTTPS requests for Lighttpd.

Step 5. Set Up Let’s Encrypt SSL Auto Renewal.

 

 Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Let’s Encrypt SSL with Lighttpd on a CentOS 7 server.
Install Let’s Encrypt SSL With Lighttpd on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Let’s Encrypt SSL using Certbot.

In CentOS 7, you can find Certbot on the EPEL repository; if you enable it, just install what you need:

yum install epel-release
yum install certbo

You will also need to have Lighttpd installed and running. Of course, if you are adding certificates onto a previously configured web host this would already be installed:

yum -y install lighttpd
systemctl start lighttpd.service

Obtaining a certificate with Certbot:

certbot certonly --webroot -w /var/www/wpcademy.com -d wpcademy.com -d www.wpcademy.com

Combine both certificate and private key in one file.

Lighty likes its certificates formatted in a specific way, so we’re going to combine the private keys and certificate into one file that we’ll tell lighty about later:

cat /etc/letsencrypt/live/idroot.us/privkey.pem /etc/letsencrypt/live/wpcademy.com/cert.pem > /etc/letsencrypt/live/idroot.us/combined.pem

Step 3. Configure Lighttpd For Your New Cert.

Configure lighty to use the new certificate and chain:

nano /etc/lighttpd/lighttpd.conf

Use the below information:

$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/wpcademy.com/web.pem"
ssl.ca-file = "/etc/letsencrypt/live/wpcademy.com/chain.pem"
server.name = "wpcademy.com" 
server.document-root = "/var/www/wpcademy.com"
server.errorlog = "/var/log/lighttpd/wpcademy.com_error.log"
accesslog.filename = "/var/log/lighttpd/wpcademy.com_access.log"

Step 4. Force HTTPS requests for Lighttpd.

We can also configure HTTP to HTTPS redirection on Lighttpd server so that the traffic comes to non-HTTPS site redirect to the HTTPS site:

$HTTP["scheme"] == "http" {
$HTTP["host"] == "wpcadem.com" {
url.redirect = ("/.*" => "https://idroot.us$0")
}
}

Save and close the file when you are finished.

Step 5. Set Up Let’s Encrypt SSL Auto Renewal.

Let’s Encrypt certificates comes with a validity of 90 days; it is highly advisable to configure the cron (Linux Scheduler) job to renew your certificates before they expire:

certbot renew --dry-run

If that appears to be working properly, configure a cron job for the below command:

certbot renew

Congratulation’s! You have successfully installed Let’s Encrypt. Thanks for using this tutorial for installing Let’s Encrypt SSL With Lighttpd on CentOS 7 system. For additional help or useful information, we recommend you to check the official Let’s Encrypt web site.

How To Install Docker Compose on CentOS 7

Docker Compose on CentOS 7

Docker Compose is a command line tool to define and configure multi-container docker applications. In other words we can say docker compose is used to link multiple containers and deploy application from a single command.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Docker using YUM.

Step 3. Installing Docker Compose.

Step 4. Testing Docker Compose.

 

 Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Docker Compose on a CentOS 7 server.
Install Docker Compose on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Docker using YUM.

Docker is included by default in the CentOS-Extras repository. To install run the following command:

yum -y install docker
yum -y install device-mapper device-mapper-event device-mapper-libs device-mapper-event-libs

Start and enable Docker service:

systemctl start docker.service
systemctl enable docker.service

And verify your work by checking the status of Docker:

systemctl status docker.service

Step 3. Installing Docker Compose.

Once Docker has been installed, install Docker Compose. First of all, install the EPEL repository by executing the command:

yum install epel-release
yum install -y python-pip

Then you can install Docker Compose:

pip install docker-compose

You will also need to upgrade your Python packages on CentOS 7 to get docker-compose to run successfully:

yum upgrade python*

Check Docker Compose version with the following command:

docker-compose -v

Step 4. Testing Docker Compose.

Now that we have Docker Compose installed, let’s test it with this really simple example, Create a new directory and move into it:

mkdir hello-world
cd hello-world

Create a new YAML file:

nano docker-compose.yml

In this file paste the following content:

wpcademy-compose-test:
image: hello-world

Next, execute the following command in the hello-world directory:

sudo docker-compose up

The output should start with the following:

Output of docker-compose up
Creating helloworld_wpcademy-compose-test_1...
Attaching to helloworld_wpcademy-compose-test_1
wpcademy-compose-test_1 | 
wpcademy-compose-test_1 | Hello from Docker.
wpcademy-compose-test_1 | This message shows that your installation appears to be working correctly.
wpcademy-compose-test_1 |

Docker containers only run as long as the command is active, so the container will stop when the test finishes running.

Congratulation’s! You have successfully installed Docker Compose. Thanks for using this tutorial for installing Docker Compose on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Docker web site.

How To Install and Use Traceroute on CentOS 7

Use Traceroute on CentOS 7

Traceroute control is a system diagnostic tool for displaying the route packets take to network host or destination. It shows how long each hop will take and how many hops that the packet needs to reach the specify destination. In Linux, traceroute command is used while in windows and DOS surroundings, they utilized tracert command.

Table of Contents

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Traceroute.

 

 Prerequisites

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Vagrant virtual development environment on a CentOS 7 server.
Install and Use Traceroute on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Installing Traceroute.

To install traceroute, run the following command:

yum install traceroute -y

Verify the command install or not:

# which traceroute
/bin/traceroute

How to Use Traceroute

Run the tracert command followed with the address of the website. Example, if you wanted to run a traceroute on idroot, you’d run the command:

tracert wpcademy.com

Display basic command line options help for more usage:

# traceroute --help

Congratulation’s! You have successfully installed Traceroute. Thanks for using this tutorial for installing use Traceroutet on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Traceroutet web site.