Install PHP 5.5 with OpCache and Google PageSpeed
This tutorial guides step-by-step on how to install most recent/most updated versions of a regular PHP stack. This comprises PHP 5.5 with OpCache, Percona 5.6 server and Google PageSpeed for Apache HTTPD
- Import needed repo for PHP 5.5:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - Install PHP 5.5 and related softwares:
yum --enablerepo=remi,remi-php55 install httpd php php-common yum --enablerepo=remi,remi-php55 install php-opcache php-pecl-memcache php-pecl-memcached - Install Mod PageSpeed for Apache HTTPD
- Install Percona 5.6 server:
rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm yum install Percona-Server-client-56 Percona-Server-server-56 Percona-Server-share-compat - Start services:
service httpd start service mysql start - Also install phpMyAdmin for easy mysql db management:
yum --enablerepo=remi,remi-php55 install phpmyadmin - In case using virtualmin / webmin, be sure to create an alias of mysql service so that we can control mysql server from webmin:
cd /etc/rc.d/init.d/ ln -s mysql mysqld