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:[bash]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
[/bash] - Install PHP 5.5 and related softwares:[bash]yum –enablerepo=remi,remi-php55 install httpd php php-common
yum –enablerepo=remi,remi-php55 install php-opcache php-pecl-memcache php-pecl-memcached[/bash] - Install Mod PageSpeed for Apache HTTPD
- Install Percona 5.6 server:[bash]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[/bash] - Start services:[bash]service httpd start
service mysql start[/bash] - Also install phpMyAdmin for easy mysql db management:[bash]yum –enablerepo=remi,remi-php55 install phpmyadmin[/bash]
- In case using virtualmin / webmin, be sure to create an alias of mysql service so that we can control mysql server from webmin:[bash]cd /etc/rc.d/init.d/
ln -s mysql mysqld[/bash]