Unable to update php 4.3.9 to php 5

Support/Development for PHP
shoggy24
Forum User
Forum User
Posts: 56
Joined: Wed May 21, 2008 3:23 pm

Unable to update php 4.3.9 to php 5

Unread post by shoggy24 »

I just got a VPS at vpsland, a CentOS 4 X86_64.

I tried to update the php version after enabling atomic and plesk repositories, but i get the following error;

Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.x86_64 0:5.2.8-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-snmp
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-odbc
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-devel
--> Processing Dependency: php-common = 5.2.8-1.el4.art for package: php
--> Processing Dependency: php <= 4.4.0 for package: php-sqlite2
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-pear
--> Processing Dependency: php-cli = 5.2.8-1.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-ncurses
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-mysql
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-xmlrpc
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-ncurses.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-imap.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-xmlrpc.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-cli.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-ldap.x86_64 0:5.2.8-1.el4.art set to be updated
---> Downloading header for php-xml to pack into transaction set.
php-xml-5.2.6-1.el4.art.x 100% |=========================| 13 kB 00:00
---> Package php-xml.x86_64 0:5.2.6-1.el4.art set to be updated
---> Package php-mbstring.x86_64 0:5.2.8-1.el4.art set to be updated
---> Downloading header for php-pdo to pack into transaction set.
php-pdo-5.2.5-2.el4.art.x 100% |=========================| 13 kB 00:00
---> Package php-pdo.x86_64 0:5.2.5-2.el4.art set to be updated
---> Package php-snmp.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-gd.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-devel.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-mysql.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-odbc.x86_64 0:5.2.8-1.el4.art set to be updated
---> Package php-common.x86_64 0:5.2.8-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-pear
--> Processing Dependency: php-common = 5.2.5-2.el4.art for package: php-pdo
--> Processing Dependency: php-common = 5.2.6-1.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.12 is needed by package php-pear
Error: Missing Dependency: php-common = 5.2.5-2.el4.art is needed by package php-pdo
Error: Missing Dependency: php-common = 5.2.6-1.el4.art is needed by package php-xml


This is a virtuozzo panel with plesk 8.6. is it safe to remove php and reinstall it, with the hope it will install the latest version platform?
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Try these commands, one at a time. If each works, try upgrading again.
#yum install php-pear
#rpm -e php-pdo
#rpm -e php-xml
shoggy24
Forum User
Forum User
Posts: 56
Joined: Wed May 21, 2008 3:23 pm

Unread post by shoggy24 »

thanks Highland, i tried the command yum install php-pear and i got the error message -

Error: Missing Dependency: php-common = 5.2.5-2.el4.art is needed by package php-pdo
Error: Missing Dependency: php-common = 5.2.6-1.el4.art is needed by package php-xml

So i tried doing a yum install php-common and got another message -

Transaction Check Error: file /etc/php.ini from install of php-common-5.2.8-1.el4.art conflicts with file from package php-4.3.9-3.22.12


dont know how to proceed from here.

Thanks
Snapdragon
Forum Regular
Forum Regular
Posts: 119
Joined: Mon Nov 28, 2005 4:44 pm

Unread post by Snapdragon »

To get php-pear to install I had to disable my CentOS-Base.repo. Then it stopped complaining about php 4.3.9 and grabbed it from ART.
Post Reply