Thursday, June 20, 2013

Upgrade PHP5.3 to 5.4 in Cent OS

Open Terminal and execute below command

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

after execution of above execute

yum --enablerepo=remi install httpd php php-common

as it execute, it will show you the list of packages which will be upgraded and below the list it will ask you for upgrade with option (Y/N) press Y and it will start upgrading

as the upgrade and installation completed you need to restart the service of apache

service httpd restart                       or

/etc/init.d/httpd restart


may be you can get error while restarting httpd service it looks like

error
httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory

open the file httpd.conf and find mod_file_cache.so and comment that line.

after doing this you may get error for the line 197 which is of mem_cache.so find that in httpd.conf file and comment that line

now again try to start the service of httpd

you may get the error msg like

[warn] module ssl_module is already loaded, skipping
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available,
shutting down
Unable to open logs


don't worry,

execute below command

killall httpd

now, start the service of httpd (Apache)

it will start successfully.









cent os,php 5.3 to 5.4 cent os,cent os php upgrade,upgrade php,upgrade php in cent os,upgrade php 5.3 to 5.4

No comments:

Post a Comment