CentOS 5.7 Upgrade PHP 5.1 to 5.3
The MediaCP requires PHP 5.2 or higher to operate, with CentOS 5.7 the default installed PHP package is PHP 5.1.
You will need to upgrade your version of php before installing our product.
–Please note this applies to LAMPP (Linux, Apache, MySQL & PHP) installations only —
If you are using cPanel or another web hosting control panel, you will need to consult appropriate documentation to upgrade.
- Remove current PHP package:
# yum remove php php-common
- Install php53 packages
# yum install php53 php53-mysql php53-gd php53-curl - Restart apache for changes to take affect.
# /etc/init.d/httpd restart - You can check this worked by typing in:
# php -vThis should return something like:
PHP 5.3.3 (cli) (built: Dec 10 2013 22:12:52)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies