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

  1. 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
  2. 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
  3. Install Mod PageSpeed for Apache HTTPD
  4. 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
  5. Start services:
    service httpd start
    service mysql start
  6. Also install phpMyAdmin for easy mysql db management:
    yum --enablerepo=remi,remi-php55 install phpmyadmin
  7. 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

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *