Using PHP 5.4 5.5 with VirtualMin

VirtualMin is one of the most well-known free website control panel for *Nix users. However, their related software is quite out-dated. One of the most complaints when using Webmin is that the PHP version is still 5.3.3 (from 2010 *__*). So, this quick tutorial guides how to install PHP 5.4 5.5 with VirtualMin.

  1. First, enable Epel and Remi repository on CentOS:
    1. For CentOS 32-bit:
      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. For CentOS 64-bit:
      rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
      rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

      or for CentOS 6:

      yum install http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm
  2. Then, simply update PHP and their related packages:
    yum --enablerepo=remi install php

    . After this step, remi will update PHP to version 5.4.x and MySQL to version 5.5.x. In my case, this is enough for the Laravel project, so I can satisfy with it :-). However, if you want PHP 5.5, use

    yum --enablerepo=remi,remi-php55 install php

    instead.

  3. The upgrade will also upgrade MySQL from 5.1.x to 5.5.x. So, we must upgrade the mysql schema after that:
    mysql_upgrade -u root -p

That’s all. Enjoy coding 🙂

Similar Posts

Leave a Reply

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