Jump to content

PHP Upgrade: Difference between revisions

From TetraWiki
No edit summary
Flag as outdated (client review pass)
 
Line 1: Line 1:
{{Outdated|reason=Old Article might not be relevant now , but concept can adopted|date=2026-07}}


[[Category:Installation]]
[[Category:Installation]]

Latest revision as of 15:59, 25 July 2026

This is an Old / Outdated Article, Please use this only as technical Reference
Reason: Old Article might not be relevant now , but concept can adopted
Flagged: 2026-07


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