Install Varnish 4 – CentOS 7.2
Installing Varnish on CentOS 7.2 is pretty straight forward, start off by adding the epel-release…
CentOS is really slow to update versions of software’s it maintains so we’ll have to add an external repo to install PHP 5.6 on our server.
Make sure you backup everything on your server.
Start off by removing any previous version of PHP you have installed on your server:
Note: The following can cause havoc on your system, be sure you know what you’re removing before proceeding.
Before hitting ‘y’ make sure you go over the dependencies being removed, you also might want to take note of them to install them back with PHP 5.6.
Start off by installing two repos, epel-release and webtatic:
With this repo, PHP 5.6 will have to be installed with a different name, to get a list of everything available for PHP 5.6, issue the following:
Restart apache and hit a phpinfo file to verify
This is what you should see