How To Install Katello on CentOS 7

Katello on CentOS 7

Katello is an open source content management software. It also performs provisioning and configuration task using foreman. In other words, we can say Katello is the open source Satellite SeServer, whichan push updates to its register Linux Servers or clients. In fact, it is a lifecycle management plugin to Foreman which handles subscription, and repository management.

Table of Contents

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

Step 2. Set Hostname and Firewall Rules.

Step 3. Installing Katello.

Step 4. Accessing the Katello.

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 Katello content management software on a CentOS 7 server.
Install Katello 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. Set Hostname and Firewall Rules.

Use the following command to set the hostname:

hostnamectl set-hostname "katello.wpcademy.com

Also update the hostname file too inside /etc/hostname:

echo "192.168.77.1 katello.idroot.net" >> /etc/hosts

Once done with hostname now you’ll need to change firewall rules to open the ports for Katello:

firewall-cmd --permanent --zone=public --add-port=80/tcp --add-port=443/tcp --add-port=5647/tcp --add-port=9090/tcpfirewall-cmd --permanent --zone=public --add-port=8140/tcp --add-port=8443/tcp --add-port=8000/tcp --add-port=67/udp --add-port=68/udp --add-port=69/udpfirewall-cmd --reload

Step 3. Installing Katello.

Katello requires some repositories to be set up before the installation process so there are some repositories that here we are setting up for Katello:

yum -y install http://fedorapeople.org/groups/katello/releases/yum/3.2/katello/el7/x86_64/katello-repos-latest.rpm
yum -y install http://yum.theforeman.org/releases/1.13/el7/x86_64/foreman-release.rpm
yum -y install http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install foreman-release-scl

Run the following command to install Katello packages:

yum update
yum install katello

Next, configure your server with NTP for time syncing. Set the time zone with respect to your location:

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
yum install ntp -y
ntpdate in.pool.ntp.org

Next start katello installation using foreman-installer command like shown below:

foreman-installer --scenario katello --foreman-admin-username admin --foreman-admin-password

*In above command replace Specify_Passwd with a strong password and this password will be used to login to foreman dashboard in web access of katello.

When the installation will be completed, you’ll get an output stating that Installing Success. If in case your server is running behind the proxy server then you’ll have to run below given command:

foreman-installer --scenario katello --katello-proxy-url http:// --katello-proxy-port --foreman-admin-username admin --foreman-admin-password

Step 4. Accessing the Katello.

Katello will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://katello.wpcademy.com or http://server-ip and complete the required the steps to finish the installation. Use the username as admin and password that we specify in the above step.

Install Katello on CentOS 7
Install-Katello-Foreman
Congratulation’s! You have successfully installed Katello. Thanks for using this tutorial for installing Katello content management software on a CentOS 7 server. For additional help or useful information, we recommend you to check the official Katello website.

How To Install PhpRedmin on CentOS 7

PhpRedmin on CentOS 7

Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. Redis also supports datatypes such as Transitions, Publish and Subscribe. ‘Redis ’ is considered more powerful than ‘Memcache’ . It would be smart to bring ‘Redis’ into practice and put ‘Memcache’ down for a while.

Table of Contents

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

Step 2. Installing LAMP server.

Step 3. Installing PhpRedmin.

Step 4. Disable SELINUX.

Step 5. Accessing PhpRedmin.

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 PhpRedmin on a CentOS 7 server.
Install PhpRedmin 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 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 modules:

yum install git gcc make tcl php­70w-pear php70w-devel

Step 3. Installing PhpRedmin.

Now we can get Phpredmin from Github:

git clone -­b php7 https://github.com/phpredis/phpredis.git
cd phpredis/
phpize
./configure
make && make install

Next, you should load the Redis module in your PHP:

echo 'extension=redis.so' > /etc/php.d/redis.ini

Restart the apache service for the changes to take effects:

systemctl restart httpd

Finally, test if your Redis module has been loaded successfully:

### php -i |grep redis

/etc/php.d/redis.ini,
redis
Registered save handlers => files user redis rediscluster
This program is free software; you can redistribute it and/or modify

Then we can install Phpredmin:

cd /var/www
git clone https://github.com/sasanrose/phpredmin.git
mkdir -p ./phpredis/logs/apache2handler/
chown apache:apache ./phpredmin/ -­R

Create a virtual host for PhpRedmin:

nano /etc/httpd/conf.d/phpredmin.conf

Add the following lines:

Alias /phpredmin /var/www/phpredmin/public

AllowOverride All

# Apache 2.4

Require all granted


# Apache 2.2
Order Deny,Allow
Allow from all

Restart the apache service for the changes to take effects:

systemctl start httpd.service
systemctl enable httpd.service

Step 4. Disable SELINUX.

You can disable SELINUX or you can add a rule for permission, you can follow our guide here.

Step 5. Accessing PhpRedmin.

PhpRedmin will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/phpredmin or http://server-ip/phpredmin. If you are using a firewall, please open port 80 to enable access to the control panel.

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

How To Install Atom Text Editor on CentOS 7

Atom Text Editor on CentOS 7

Atom is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in Node.js, and embedded Git Control, developed by GitHub. Atom is a desktop application built using web technologies. Most of the extending packages have free software licenses and are community-built and maintained. Atom is based on Electron (formerly known as Atom Shell), a framework that enables cross-platform desktop applications using Chromium and Node.js. It is written in CoffeeScript and Less. It can also be used as an integrated development environment (IDE).

Table of Contents

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

Step 2. Installing Atom Text Editor 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 Atom Text Editor on CentOS 7 server.
Install Atom Text Editor 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 Atom Text Editor on CentOS 7.

First, Download the Atom editor package from below link:

wget https://github.com/atom/atom/releases/download/v1.18.0/atom.x86_64.rpm

Once the file is downloaded, install the Atom Editor package:

yum localinstall atom.x86_64.rpm

Once installed, next you can start Atom by searching for it Unity Dash. If the app icon doesn’t show up, try logging out and logging back in.

Congratulations! You have successfully installed Atom. Thanks for using this tutorial for installing Atom Text Editor in CentOS 7 systems. For additional help or useful information, we recommend you to check the official Atom Text Editor web site.

How To Install VirtualBox on CentOS 7

VirtualBox on CentOS 7

VirtualBox is a free and open-source hypervisor software, allows you to create and run a guest operating systems (“virtual machines”) such as Linux and Windows on top of the host operating system.VirtualBox supports both software-based and Hardware-assisted virtualization.

Table of Contents

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

Step 2. Installing required package and development tools:

Step 3. Installing VirtualBox on CentOS 7.

Step 4. Accessing VirtualBox.

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 VirtualBox on a CentOS 7 server.
Install VirtualBox on CentOS 7

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

yum clean all
rpm -Uvh https://epel.mirror.angkasa.id/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
yum -y update

Step 2. Installing required package and development tools:

Before installing VirtualBox make sure to install all required packages to run VirtualBox:

yum install kernel-devel kernel-headers dkms
yum groupinstall "Development Tools"
yum update

Download and import Oracle public key:

rpm --import oracle_vbox.asc

Download VirtualBox repo file for CentOS 7 and move it into /etc/yum.repos.d directory:

wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo

Step 3. Installing VirtualBox on CentOS 7.

Use the following command to install VirtualBox using yum command:

yum install VirtualBox-4.3

Rebuild kernel modules with following command:

service vboxdrv setup

Add your user name in to vboxuser group:

usermod -a -G vboxusers user_name

Step 4. Accessing VirtualBox.

Once it’s installed, start it from your application menu, or run the command below to start VirtualBox from terminal or find the application on your ubuntu dash and launch it.:

virtualbox

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

How To Install Erlang on CentOS 7

Erlang on CentOS 7

Erlang is a programming language used to build massively scalable soft real-time systems with requirements for high availability. The Erlang runtime system has built-in support for concurrency, distribution and fault tolerance.

Table of Contents

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

Step 2. Installing Erlang.

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

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

yum clean all
yum -y install epel-release
yum -y update

Step 2. Installing Erlang.

Before installing Erlang, we need to install the following prerequisites:

yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget wxBase.x86_64

First, use the following commands to add erlang apt repository on CentOS based system:

wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

Now, you can install erlang package on your system using the following command:

yum install erlang

Run the following command to verify whether Erlang is installed or not:

erl

tep 3. Erlang Hello World Program.

Let’s start with hello world program on erlang. First create file helloworld.erl with following content:

nano helloworld.erl

Add the following content:

% hello world program
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("Hello World!\n").

Compile the hello world program using below command:

erlc helloworld.erl

Now, run your program using below command:

erl -noshell -s helloworld start -s init stop

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

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.