PHP Upgrade: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Installation]] | |||
'''PHP Upgradation''' | '''PHP Upgradation''' | ||
Latest revision as of 14:58, 27 November 2012
PHP Upgradation
Links:
http://helpinlinux.com/tag/upgrade-php-to-5-3-5-centos-rhel-steps/ http://www.andresmontalban.com/update-centos-5-php-5-1-to-php-5-3/
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi update php php-*
Hence issue with mysql came ...
file /etc/my.cnf from install of mysql-libs-5.5.27-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-4.el5_5.3.i386
So, Take backup of mysql
mysqldump -u root -psys_0510 --all-databases > all_database.sql mysqldump -u root -psys_0510 --all-databases --compatible=mysql40 > versioncompatible-all_databases.sql
Stop Qmail on teh server
vi /etc/inittab ; init q
Stop Spamassassin
/etc/init.d/spamd stop
Stop Mysql
/etc/init.d/mysqld stop
Remove mysql
yum remove mysql
Then Install PHP amd Mysql
yum --enablerepo=remi update php php-*
yum --enablerepo=remi install php php-common php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml php-imap php-devel php-odbc php-bcmath php-ldap
yum --enablerepo=remi install mysql-server mysql-connector-odbc
Start Mysql
/etc/init.d/mysqld start
Start Spamassassin
/etc/init.d/spamd start
Start Qmail
vi /etc/inittab ; init q