Installing Varnish, Pound, Apache, PHP-FPM, Letsencrypt Free SSL, Percona on CentOS 7

If this is your first visit, be sure to check out the FAQ by clicking the link (Sorry, coming soon!). You may have to register before you can post: click the register link to proceed.

To start viewing and posting messages, select the forum that you want to visit from the selection below.  Welcome to the forums!

6 posts / 0 new
Last post

Installing Varnish, Pound, Apache, PHP-FPM, Letsencrypt Free SSL, Percona on CentOS 7

This is a basic tutorial on how to setup in the quickest manner possible a high end performance ready to be tuned server for your website.  The reason I say ready to be tuned is because this tutorial only covers the basics of installing each component in an efficient manner.  I discuss how to configure each component in the next post.

Getting Started:

  • At the very minimum, you need root or sudo privileges, and this guide goes under the assumption you have root access (think VPS).  If you do not, add a 'sudo' before each command.
  • You need CentOS7 installed (Basic server configuration ideal)
  • You need to be comfortable using ssh / the command line

After finishing the install of the base OS (beyond the scope of this tutorial), you can proceed to install the repositories you will need to proceed with this install.

You will need the EPEL Repository, Percona Repository, and remi Repository.

yum install -y epel-release http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm && rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

This will grab the EPEL Repository, install the Percona Latest Repository, and install remi.  With remi, you need to perform one extra step to enable it so we can use php 5.6 instead of the outdated 5.4 that comes with EPEL.

From the console / ssh terminal, do the following:

vi /etc/yum.repos.d/remi.repo

find the [remi] section and [remi-php56] section, and make sure both are set to enabled=1 (by default, both are off)

It should look similar to this:

[remi] name=Remi's RPM repository for Enterprise Linux 7 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/7/remi/$basearch/ #mirrorlist=https://rpms.remirepo.net/enterprise/7/remi/httpsmirror mirrorlist=http://rpms.remirepo.net/enterprise/7/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php56] name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/ #mirrorlist=https://rpms.remirepo.net/enterprise/7/php56/httpsmirror mirrorlist=http://rpms.remirepo.net/enterprise/7/php56/mirror # NOTICE: common dependencies are in "remi-safe" enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Once those changes are made, let's install the Acmetool which will automate the entire SSL process for us, including getting a free SSL certificate from LetsEncrypt CA.

wget --quiet -O /etc/yum.repos.d/hlandau-acmetool-epel-7.repo 'https://copr.fedorainfracloud.org/coprs/hlandau/acmetool/repo/epel-7/hlandau-acmetool-epel-7.repo'

This will install the repo needed to get Acmetool

 

Installing Required Software

Now that we have all the repositories we need to get the software packages, let's start installing all the packages. The quick command is:

yum update -y && yum install -y httpd php-fpm php-cli php-mysqlnd php-pdo php-gd Percona-Server-server-57 varnish Pound acmetool

This line will install the Apache 2.4 web server if it's not already installed, php-fpm for PHP processing, php-pdo and php-mysqlnd to communicate with the database, php-gd for image processing, Percona-Server-server-57 which is the Percona high performance mysqld replacement, varnish which is the http high performance reverse proxy and cache, and of course we need Pound which is our SSL reverse proxy (so we can sent encrypted traffic / SSL / port 443 to our caching server), and acmetool lets us grab SSL certificates.

Read how to configure all the software you installed in this next post

Vote up!
Vote down!

Points: 0

You voted ‘up’

This is a great start, but all you have done is installed the tools you need.  You haven't configured any of them to work with each other, or to really work at all.  Please don't misunderstand me, I think that this guide is super amazing, and it will help a lot of people who need a quick howto to get off the ground fast.  I would love to see the second half of this post.  <3

Vote up!
Vote down!

Points: 0

You voted ‘up’

Thank you for pointing that out! I actually do intend to extend this into a complete document on how to setup, install, and get running Varnish, Pound, Apache, PHP-FPM, Percona, and Letsencrypt. For the moment, it serves as a quick tutorial on how to install all the components needed for this system. More will come, I promise! :)

Vote up!
Vote down!

Points: 0

You voted ‘up’

Nice 

Vote up!
Vote down!

Points: 0

You voted ‘up’

Nice 

Vote up!
Vote down!

Points: 0

You voted ‘up’

it seems intersting i do not have much knowledge about language but i will try it once

Recent Posts

Video Marketing for Business: Here is what the experts are saying If you are an entrepreneur in this era, you... Read more
Brand Yourself for Web Marketing It's time to talk about the feature that will set you apart from your competition... Read more
Time to Make your Presence on the Web Felt: How Much you Should invest? You know what you want to... Read more

Need Support?


Every video, every website, every chatbot, every client - 100% custom products and solutions to make your business run successfully

145 Pine Haven Shores Road #1205 Shelburne, VT

Recent Tweets

  • This needs to end... Senseless violence all for what? https://t.co/mNMP0uMnJN 2 weeks 31 min ago
  • RT : My warmest condolences and sympathies to the victims and families of the terrible Las Vegas shooting. God bless you! 2 weeks 34 min ago
  • RT : Michelle & I are praying for the victims in Las Vegas. Our thoughts are with their families & everyone enduring another senseless tragedy. 2 weeks 35 min ago
  • RT : Las Vegas update: - At least 400 wounded taken to hospitals, per police - Gunman found dead in hotel room https://t.co/5EOndn2tkj 2 weeks 35 min ago
  • RT : Keep us in your thoughts - its a very difficult and tragic evening for a lot of people ,… https://t.co/mf7x29rD9Y 2 weeks 36 min ago

Socialize with us

               


Go to top