CentOS 5.X Upgrade From PHP 5.1 to PHP 5.3¶
1. Update your repository database:¶
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
2. Update PHP packages:¶
yum --enablerepo=webtatic update php yum --enablerepo=webtatic install php-eaccelerator
3. Verify you have PHP 5.3 and eAccelerator installed:¶
php -v
PHP 5.3.20 (cli) (built: Dec 20 2012 17:56:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
4. Edit PHP configuration file:¶
nano /etc/php.ini
Make sure the entries below have the same value:
memory_limit = 128M short_open_tag = On max_execution_time = 360 max_input_time = 360 post_max_size = 64M upload_max_filesize = 64M default_socket_timeout = 360
5. Restart HTTPD:¶
service httpd restart
That's it folks!
Go to top