How To Install OpenCart on CentOS 7

OpenCart on CentOS 7

OpenCart is a free open source ecommerce platform for online merchants. OpenCart provides a professional and reliable foundation from which to build a successful online store.

Table of Contents

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

Step 2. Install LAMP server.

Step 3. Disable Selinux on CentOS 7.

Step 4. Installing OpenCart.

Step 5. Configuring MariaDB for OpenCart.

Step 6. Accessing OpenCart.

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 accge of Linount, 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 OpenCart on a CentOS 7 server.
Install OpenCart 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-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel

Step 3. Disable Selinux on CentOS 7.

Run the below command to update selinux:

setenforce 0
sed -i 's/enforcing/disabled/' /etc/sysconfig/selinux
sed -i 's/enforcing/disabled/' /etc/selinux/config

Step 4. Installing OpenCart.

First thing to do is to go to OpenCart’s download page and download the latest stable version of OpenCart, At the moment of writing this article it is version 3.0.2.0:

wget https://github.com/opencart/opencart/archive/3.0.2.0.zip
unzip 3.0.2.0.zip
mv opencart-3.0.2.0/upload/* /var/www/html/

Rename the file ‘config-dist.php’ to ‘config.php’:

mv config-dist.php config.php

We will need to change some folders permissions:

chown -R www-data.www-data /var/www/html
chmod -R 755 /var/www/html

Step 5. Configuring MariaDB for OpenCart.

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 OpenCart. 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 OpenCart installation:

MariaDB [(none)]> CREATE DATABASE opencart;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON opencart.* TO 'opencartuser'@'localhost' IDENTIFIED BY 'opencartuser_passwd';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 6. Accessing OpenCart.

OpenCart 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. If you are using a firewall, please open port 80 to enable access to the control panel.

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

How To Install OrientDB on CentOS 7

OrientDB on CentOS 7

OrientDB has a multi-model NoSQL database which supports document database with a graph which is a java based application and can be run on any operating system which supports multi-master replication and easy horizontal scaling.

Table of Contents

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

Step 2. Installing OrientDB.

Step 3. Starting the OrientDB Server.

Step 4. Configure OrientDB Daemon.

 

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 OrientDB open source NoSQL database management system on a CentOS 7 server.
Install OrientDB 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 OrientDB.

First of all, create a new user to run OrientDB:

adduser orientdb -d /opt/orientdb

Now you can download the OrientDB binary archive by running the following command:

cd /opt/orientdb/
wget https://orientdb.com/download.php?file=orientdb-community-importers-2.2.29.tar.gz -O /opt/orientdb/orientdb.tar.gz

Once the package is downloaded we will untar and move the extracted folder to the /opt/orientdb:

tar -xf orientdb.tar.gz
mv orientdb-community*/* .

Make the orientdb user the owner of the extracted files:

chown -R orientdb:orientdb /opt/orientdb

Step 3. Starting the OrientDB Server.

OrientDB provides an installer script for you to start the server. Switch to the OrientDB user:

su - orientdb
sudo bin/server.sh

OrientDB should now prompt for the root password with a message like the one below:

+---------------------------------------------------------------+
|                WARNING: FIRST RUN CONFIGURATION               |
+---------------------------------------------------------------+
| This is the first time the server is running. Please type a   |
| password of your choice for the 'root' user or leave it blank |
| to auto-generate it.                                          |
|                                                               |
| To avoid this message set the environment variable or JVM     |
| setting ORIENTDB_ROOT_PASSWORD to the root password to use.   |
+---------------------------------------------------------------+

Step 4. Configure OrientDB Daemon.

Create a new ststemd service to easily manage OrientDB start and stop:

nano /etc/systemd/system/orientdb.service

Paste the following content:

[Unit]
Description=OrientDB service
After=network.target

[Service]
Type=simple
ExecStart=/opt/orientdb/bin/server.sh
User=orientdb
Group=orientdb
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=orientdb

[Install]
WantedBy=multi-user.target

Reload systemd daemon service:

systemctl daemon-reload

Start OrientDB and enable for starting at boot time:

systemctl start orientdb
systemctl enable orientdb

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

How To Install Sensu on CentOS 7

Sensu on CentOS 7

Sensu is a free and open source tool for composing the monitoring system you need. It is written in Ruby that uses RabbitMQ to handle messages and Redis to store data. Sensu provides a framework for monitoring infrastructure and application health. Sensu supports a number of platforms such as, IBM AIX, Ubuntu, Debian, RedHat, CentOS, FreeBSD, Mac OS, Solaris, Windows and much more.

Table of Contents

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

Step 2. Installing Erlang.

Step 3. Installing RabbitMQ.

 

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 Sensu monitoring on a CentOS 7 server.
Install Sensu 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 Erlang.

Install Erlang using command:

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install erlang

Step 3. Installing RabbitMQ.

First thing to do is to go to RabbitMQ’s download page and download the latest stable version of RabbitMQ, At the moment of writing this article it is version 3.6.1:

wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

Installing RabbitMQ and related packages is now as simple as running just one command:

yum install rabbitmq-server-3.6.1-1.noarch.rpm

To start, stop, restart and check the RabbitMQ status, use the following:
# To start enable boot service:

systemctl enable rabbitmq-server

# To start the service:
systemctl start rabbitmq-server

# To stop the service:
systemctl stop rabbitmq-server

# To restart the service:
systemctl restart rabbitmq-server

# To check the status:
systemctl status rabbitmq-server

Step 4. Installing Redis.

Next, we will be installing Redis:

yum install redis

Finally, we will start the Redis services and enable them to auto-start:

systemctl start redis-server.service
systemctl enable redis-server.service

Step 5. Installing Sensu.

First, create a yum repository for in /etc/yum.repos.d:

### nano /etc/yum.repos.d/sensu.repo

[sensu]
name=sensu-main
baseurl=http://repositories.sensuapp.org/yum/el/7/x86_64/
gpgcheck=0
enabled=1

Then save and close the file.

Install and start the Sensu services:

yum install sensu uchiwa -y

Create a sample Sensu configuration file:

cp /etc/sensu/config.json.example /etc/sensu/config.json

Start Sensu and Uchiwa and enable auto-start:

systemctl start sensu-server
systemctl start sensu-client
systemctl start sensu-api
systemctl start uchiwa
systemctl enable sensu-server
systemctl enable sensu-client
systemctl enable sensu-api
systemctl enable uchiwa

Step 6. Accessing Sensu.

Sensu will be available on HTTP port 3000 by default. Open your favorite browser and navigate to http://yourdomain.com:3000 or http://server-ip:3000 and complete the required the steps to finish the installation. If you are using a firewall, please open port 3000 to enable access to the control panel.

Congratulation’s! You have successfully installed Sensu. Thanks for using this tutorial for installing Sensu monitoring on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Sensu website.

How To Install Minecraft Server on CentOS 7

Minecraft Server on CentOS

Minecraft is a game about breaking and placing blocks. The creative and building aspects of Minecraft allow players to build constructions out of textured cubes in a 3D procedurally generated world. Minecraft servers allow players to play online or via a local area network with other people. They may either be run on a hosted server, on local dedicated server hardware, a Virtual Private server on a home machine, or on your local gaming computer.

Table of Contents

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

Step 2. Installing Java-JDK.

Step 3. Installing Minecraft.

 

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 Sensu monitoring on a CentOS 7 server.
Install Minecraft Server 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 Java-JDK.

Minecraft is a Java-based game and so we will need to install Java:

yum install java screen -y

Step 3. Installing Minecraft.

First, create a Minecraft directory:

mkdir minecraft
cd minecraft

Now download and install your own Minecraft server:

wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar

Start the Screen with adequate name:

screen -S "Minecraft server"

Accept Minecraft’s end-user license agreement by changing the value from false to true in eula.txt file:

nano eula.txt

Now you only need to run the installed server (you can edit the 1024M value to match your server’s RAM):

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

To get back to the normal screen, press these keys: Control+A+D, To get back to the screen where Minecraft is running:

screen -r

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

How To Install Firefox Quantum on CentOS 7

Foxit Reader on CentOS 7

Mozilla today released Firefox 57 a.k.a Firefox Quantum. According to a Completely overhauled heart along with a revamped layout, Firefox Quantum has been built from the ground up to deliver a quick browsing experience while swallowing a limited amount of resources. Mozilla is calling Quantum the biggest update to the browser since its original release in 2004.

The browser now also comes with a new CSS engine Named Stylo which Takes better advantage of today’s devices featuring multi-core Processors to deliver a faster and simpler browsing experience. Firefox Will automatically prioritize busy tabs over inactive ones for better resource management. Mozilla claims that its approach to multiple Processes is exceptional and different from that of Chrome.

Table of Contents

Step 1. Installing Firefox Quantum on CentOS.

 

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 Firefox Quantum web browser on a CentOS 7 server.
Install Firefox Quantum on CentOS 7

Step 1. Installing Firefox Quantum on CentOS.

First, download latest Firefox, use the following command:

### 32-Bit ###
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/57.0/linux-i686/en-US/firefox-57.0.tar.bz2
### 64-Bit ###
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/57.0/linux-x86_64/en-US/firefox-57.0.tar.bz2

Extract the tar package to a desired directory.

tar xfj firefox-57.0.tar.bz2

Create symlink the downloaded executable to /usr/bin/firefox:

ln -s /usr/local/firefox/firefox /usr/bin/firefox

Now, check the version of already installed Firefox and get the extract location of binary command:

# firefox -V
Mozilla Firefox 57.0

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

How To Install Anchor CMS on CentOS 7

Anchor CMS on CentOS 7

Anchor CMS is an open-source, light-weight and ultra-simple blogging system. It’s written in PHP and Includes markdown Service, custom fields, themes, i18n compatibility and many more.

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 Anchor CMS.

Step 5. Configuring MariaDB for OpenCart.

Step 6. Configuring Apache web server for Anchor CMS.

Step 7. Accessing Anchor CMS.

 

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 accge of Linount, 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 Anchor CMS on a CentOS 7 server.
Install Anchor CMS 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-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel

Step 3. Installing Anchor CMS.

First thing to do is to go to Anchor CMS’s download page and download the latest stable version of Anchor CMS, At the moment of writing this article it is version 0.12.3:

wget https://github.com/anchorcms/anchor-cms/archive/0.12.3a.zip
unzip 0.12.3a.zip -d /var/www/html/
mv /var/www/html/anchor-cms-0.12.3a /var/www/html/anchor

We will need to change some folders permissions:

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

Step 5. Configuring MariaDB for OpenCart.

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 Anchor CMS. 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 Anchor CMS installation:

MariaDB [(none)]> CREATE DATABASE anchor;
MariaDB [(none)]> NT ALL PRIVILEGES ON anchor.* TO 'anchoruser'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 6. Configuring Apache web server for Anchor CMS.

We will create Apache virtual host for your Anchor CMS 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/anchor/"
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/anchor/">
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 Anchor CMS.

Anchor CMS 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 Anchor CMS. Thanks for using this tutorial for installing Anchor CMS on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Anchor CMS web site.

How To Install GoAccess on CentOS 7

GoAccess on CentOS 7

GoAccess is a real time web log analyzer and a visualizer for Both Linux and Unix operating systems. It functions as an interactive app from the Terminal, and after models also supplies an HTML report, which can be Conveniently viewed in the browser.

Table of Contents

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

Step 2. Installing GoAccess.

Step 3. Using GoAccess.

 

 

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 GoAccess open source real-time web log analyzer on a CentOS 7 server.
Install GoAccess 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 GoAccess.

Method 1.

Execute the following command to install GoAccess:

yum -y install goaccess

Method 2.

If using another operating system, you can search for pre-compiled binaries at the official website:

wget http://tar.goaccess.io/goaccess-1.2.tar.gz
tar xvzf goaccess-1.2.tar.gz
cd goaccess-1.2
./configure --enable-utf8 --enable-geoip=legacy
make && make install

Step 3. Using GoAccess.

GoAccess has many options to analys your log files, the most simple way you can use to see your log file with GoAccess is below:

goaccess /var/log/boot.log

You can see the whole flags and capabilities of GoAccess with the command below:

goaccess --help

GoAccess live reporting in HTML format:

First, install Apache as our web server:

yum install httpd

After the installation process is finished, execute the following commands to start your Apache service:

systemctl start httpd
systemctl enable httpd

For example, using the following command will create an analyzed HTML file from the Apache access log and place it in Apache’s default document root:

goaccess /var/log/httpd/access_log --log-format=COMBINED -a -o /var/www/html/report.html

Now you can open your browser, Enter your IP address or your Domain name and add “/report.html” in the end to see your HTML output:
goaccess-dashboard
Congratulation’s! You have successfully installed GoAccess. Thanks for using this tutorial for installing GoAccess open source real-time web log analyzer on CentOS 7 systems. For additional help or useful information, we recommend you to check the official GoAccess web site.