CentOS 5.5 upgrade php.

Issues related to software problems.
Post Reply
mocter
Posts: 1
Joined: 2014/03/26 12:52:01

CentOS 5.5 upgrade php.

Post by mocter » 2014/03/26 13:09:14

hi,
First post so please go easy on me.

I have a server running CentOS release 5.5 (Final)
The server hosts a few Drupal(6.3) websites.

I need to upgrade php from 5.1 to 5.3 as I need to install a new Drupal 7.26 site.

so this is what I did,


1. php -v
PHP 5.1.6 (cli) (built: Mar 31 2010 02:44:37)

2. yum list php\* to list the available php packages that can be installed

3. yum list installed php\* to will list all php packages installed on the server
php.i386 5.1.6-27.el5
php-cli.i386 5.1.6-27.el5
php-common.i386 5.1.6-27.el5
php-devel.i386 5.1.6-27.el5
php-gd.i386 5.1.6-27.el5
php-imap.i386 5.1.6-27.el5
php-ldap.i386 5.1.6-27.el5
php-mbstring.i386 5.1.6-27.el5
php-mysql.i386 5.1.6-27.el5
php-pdo.i386 5.1.6-27.el5
php-pear.noarch 1:1.4.9-6.el5
php-pear-Auth-SASL.noarch 1.0.4-1.el5
php-pear-Mail.noarch 1.1.14-5.el5.1
php-pear-Net-SMTP.noarch 1.4.2-1.el5
php-pear-Net-Socket.noarch 1.0.8-1.el5.centos
php-snmp.i386 5.1.6-27.el5
php-xml.i386 5.1.6-27.el5

4. Remove PHP5.1: yum remove php.i386 php-cli.i386 php-common.i386 php-devel.i386 php-gd.i386 php-imap.i386 php-ldap.i386 php-mbstring.i386 php-mysql.i386 php-pdo.i386 php-snmp.i386 php-xml.i386

5. This removed all dependency’s as well eg
php-pear.noarch 1:1.4.9-6.el5
php-pear-Auth-SASL.noarch 0:1.0.4-1.el5
php-pear-Mail.noarch 0:1.1.14-5.el5.1
php-pear-Net-SMTP.noarch 0:1.4.2-1.el5
php-pear-Net-Socket.noarch 0:1.0.8-1.el5.centos

6. Install all of the above packages. yum install php53.i386 php53-cli.i386 php53-common.i386 php53-devel.i386 php53-gd.i386 php53-imap.i386 php53-ldap.i386 php53-mbstring.i386 php53-mysql.i386 php53-pdo.i386 php53-snmp.i386 php53-xml.i386

7. This installed the following dependency
libXpm.i386 0:3.5.5-3

8. restart nginx

9. php -v
PHP 5.3.3 (cli) (built: Dec 10 2013 22:20:06) HAPPY Days....

I then set up a new website using drupal 7.26

However when I go to install the site I get this error http://www.example.com/install.php
Your PHP installation is too old. Drupal requires at least PHP 5.2.4. See the system requirements page for more information.
Did I miss some thing when I installed PHP5.3?

All the other website are still working so now I am not sure what version I am running!!

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 5.5 upgrade php.

Post by TrevorH » 2014/03/26 16:48:16

Post the output of `rpm -qa php\*` now. Also the output of `grep -i php /etc/httpd.conf/*.conf`
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: CentOS 5.5 upgrade php.

Post by drk » 2014/03/26 20:41:44

mocter wrote:I have a server running CentOS release 5.5 (Final)
You'll want to update that to 5.10 asap.

Post Reply