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:[bash]rpm -Uvh
    rpm -Uvh
  2. 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]
  3. Install Mod PageSpeed for Apache HTTPD
  4. Install Percona 5.6 server:[bash]rpm -Uhv
    yum install Percona-Server-client-56 Percona-Server-server-56 Percona-Server-share-compat[/bash]
  5. Start services:[bash]service httpd start
    service mysql start[/bash]
  6. Also install phpMyAdmin for easy mysql db management:[bash]yum –enablerepo=remi,remi-php55 install phpmyadmin[/bash]
  7. 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]

About NhocConan

A super lazy guy who tries to write tech blog entries in English.He is lazy, so he can only write when he is in a good mood or when he is tired of coding.

Leave a comment

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