Monthly Archives: December 2017

How to set up load balancing on CentOS 7 / Redhat 7 using Apache

This tutorial will show you how to configure active active load balancing on CentOs 7 (Linux) using Apache.

 

This tutorial will also work on Redhat 7 (RHEL 7)

 

This tutorial will show you how to configure two CentOs web servers so you can check that your load balancing is working.

It will then show you how to configure Apache to load balance the two web servers.

The commands that you need to follow along with the tutorial are:

 

  • sudo vi /var/www/html/index.html
  • sudo  firewall-cmd –zone=public –add-port=80/tcp –permanent
  • sudo firewall-cmd –reload
  • sudo vi /etc/httpd/conf.modules.d/00-proxy.conf
  • sudo vi /etc/httpd/conf.d/default-site.conf
  • sudo service httpd restart
  • ifconfig

<VirtualHost *:80>
<Proxy balancer://mycluster>
BalancerMember http://Your-Ip-Address-Here:80
BalancerMember http://Your-Ip-Address-Here:80
</Proxy>

ProxyPreserveHost On

ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
</VirtualHost>

 

 

 

https://www.youtube.com/subscription_center?add_user=/UCkDvK72aPFRnv0GnpuV97ig

How to Install Drupal 8 on CentOs 7 / Redhat (RHEL) 7

This video describes the process of installing Drupal 8 on CentOS 7. This tutorial takes place on a CentOS 7 machine but the commands will also work on a Redhat (RHEL) 7 Machine.

 

The commands that you need to follow along with this tutorial are:

 

  • sudo wget https://ftp.drupal.org/files/projects/drupal-8.4.2.tar.gz
  • sudo tar -zxvf drupal-8.4.2.tar.gz
  • sudo mv drupal-8.4.2 /var/www/html/
  • sudo mv drupal-8.4.2/ drupal
  • sudo chcon -R –type=httpd_sys_rw_content_t /var/www/html/
  • sudo chown apache:apache /var/www/html
  • sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  • sudo yum install php70w
  • sudo service httpd restart
  • sudo yum install php70w-dom
  • sudo yum install php70w-gd
  • sudo yum install php70w-pdo
  • sudo service httpd restart

 

 

 

How to Install PHP 7 on CentOs 7 / Redhat 7 (RHEL)

This tutorial shows you how to install PHP 7 on CentOS 7.

 

This tutorial is on an CentOS 7 machine but the commands will also work on Redhat (RHEL) 7.

 

The commands that you need to follow along with this tutorial are:

 

  • sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  • sudo yum install php70w
  • sudo yum install php70w-pdo