Page 1 of 1
Upgrading to PHP 5 on Centos 4.4 Plesk 8.11
Posted: Mon Jul 16, 2007 5:33 pm
by damon
I'm trying to do the PHP 4 to 5 upgrade on PLesk 8.11, Centos 4.4 following the instructions at
http://www.atomicorp.com/wiki/index.php/PHP
The repos are setup but when I run
Yum install php-pear I get
Error: Missing Dependency: php = 4.3.9-3.22.5 is needed by package php-pear
Code: Select all
[root@ ~]# yum install php-pear
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear.x86_64 0:4.3.9-3.22.5 set to be updated
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php >= 5.1.0-1 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: php-cli for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-cli.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-gd
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-imap
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-cli
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-ldap
--> Processing Dependency: php <= 4.4.0 for package: php-sqlite2
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-gd.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-mysql.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-mbstring.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-common.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-pdo.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-imap.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-ldap.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-xml.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.5 is needed by package php-pear
What do I do? I tried Yum Upgrade PHP with the same results.
Damon
Tried to upgrade MySQL from 4 to 5 also
Posted: Mon Jul 16, 2007 5:42 pm
by damon
Tried to do a
yum upgrade mysql
which also failed, got
Code: Select all
[root@ ~]# yum upgrade mysql
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql to pack into transaction set.
mysql-5.0.27-1.el4.art.x8 100% |=========================| 35 kB 00:00
---> Package mysql.x86_64 0:5.0.27-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-qmail
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: dovecot
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: cs-gs
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-bf2
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-bf1942
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-ruby-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-fileserver
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: php51-mysqli
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14()(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: php51-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-hotfix3
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-courier-imap-add
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: dovecot
--> Processing Dependency: mysql = 4.1.20-1.RHEL4.1 for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: php51-pdo_mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-ruby-mysql
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-courier-imap-add
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: cs-gs
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-qmail
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-fileserver
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa
--> Processing Dependency: libmysqlclient_r.so.14(libmysqlclient_14)(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-hotfix3
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysqlclient14 to pack into transaction set.
mysqlclient14-4.1.22-2.el 100% |=========================| 4.8 kB 00:00
---> Package mysqlclient14.x86_64 0:4.1.22-2.el4.art set to be updated
---> Downloading header for dovecot to pack into transaction set.
dovecot-0.99.11-8.EL4.x86 100% |=========================| 16 kB 00:00
---> Package dovecot.x86_64 0:0.99.11-8.EL4 set to be updated
---> Package php-mysql.x86_64 0:5.2.3-1.el4.art set to be updated
---> Downloading header for mysql-server to pack into transaction set.
mysql-server-5.0.27-1.el4 100% |=========================| 33 kB 00:00
---> Package mysql-server.x86_64 0:5.0.27-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-pdo.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-common.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
mysql x86_64 5.0.27-1.el4.art atomic 4.0 M
Installing for dependencies:
mysqlclient14 x86_64 4.1.22-2.el4.art atomic 1.8 M
php-common x86_64 5.2.3-1.el4.art atomic 308 k
php-pdo x86_64 5.2.3-1.el4.art atomic 170 k
Updating for dependencies:
dovecot x86_64 0.99.11-8.EL4 base 678 k
mysql-server x86_64 5.0.27-1.el4.art atomic 11 M
php-mysql x86_64 5.2.3-1.el4.art atomic 280 k
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 4 Package(s)
Remove 0 Package(s)
Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): dovecot-0.99.11-8. 100% |=========================| 678 kB 00:01
(2/7): mysql-5.0.27-1.el4 100% |=========================| 4.0 MB 00:05
(3/7): php-pdo-5.2.3-1.el 100% |=========================| 170 kB 00:00
(4/7): php-common-5.2.3-1 100% |=========================| 308 kB 00:00
(5/7): mysqlclient14-4.1. 100% |=========================| 1.8 MB 00:02
(6/7): php-mysql-5.2.3-1. 100% |=========================| 280 kB 00:00
(7/7): mysql-server-5.0.2 100% |=========================| 11 MB 00:14
Running Transaction Test
Finished Transaction Test
Transaction Check Error: file /etc/php.ini from install of php-common-5.2.3-1.el4.art conflicts with file from package ph
p-4.3.9-3.22.3
Posted: Tue Jul 17, 2007 11:55 am
by scott
Is there a php-pear rpm already installed?
Posted: Tue Jul 17, 2007 2:29 pm
by damon
scott wrote:Is there a php-pear rpm already installed?
Yes
Code: Select all
~]# yum info php-pear
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Installed Packages
Name : php-pear
Arch : x86_64
Version: 4.3.9
Release: 3.22.3
Size : 1.2 M
Repo : installed
Summary: PHP Extension and Application Repository Components
Description:
PEAR is a framework and distribution system for reusable PHP
components. This package contains a set of PHP components from the
PEAR repository.
Available Packages
Name : php-pear
Arch : x86_64
Version: 4.3.9
Release: 3.22.5
Size : 267 k
Repo : update
Summary: PHP Extension and Application Repository Components
Description:
PEAR is a framework and distribution system for reusable PHP
components. This package contains a set of PHP components from the
PEAR repository.
Name : php-pear
Arch : noarch
Epoch : 1
Version: 1.5.0
Release: 5.el4.art
Size : 389 k
Repo : atomic
Summary: PHP Extension and Application Repository framework
Description:
PEAR is a framework and distribution system for reusable PHP
components. This package contains the basic PEAR components.
Posted: Tue Jul 17, 2007 3:27 pm
by scott
Hmm, try:
yum upgrade php-pear
Posted: Tue Jul 17, 2007 5:24 pm
by damon
That got some action, but it looks like it only upgraded php from 4.3.9-3.22.3 to 4.3.9-3.22.5 but a lot of the packages went to 5 levels.
Code: Select all
yum upgrade php-pear
Setting up Upgrade Process
Setting up repositories
update 100% |=========================| 951 B 00:01
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear.x86_64 0:4.3.9-3.22.5 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
php-4.3.9-3.22.5.x86_64.r 100% |=========================| 24 kB 00:00
---> Package php.x86_64 0:4.3.9-3.22.5 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.3 for package: php-ldap
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-ldap.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-gd.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-mbstring.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-imap.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-mysql.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-xml.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-xml
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-mbstring
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-ldap
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-imap
--> Processing Dependency: php-common = 5.2.3-1.el4.art for package: php-gd
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-common.x86_64 0:5.2.3-1.el4.art set to be updated
---> Package php-pdo.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php-xml x86_64 5.2.3-1.el4.art atomic 330 k
replacing php-domxml.x86_64 4.3.9-3.22.3
Updating:
php-pear x86_64 4.3.9-3.22.5 update 267 k
Installing for dependencies:
php-common x86_64 5.2.3-1.el4.art atomic 308 k
php-pdo x86_64 5.2.3-1.el4.art atomic 170 k
Updating for dependencies:
php x86_64 4.3.9-3.22.5 update 1.4 M
php-gd x86_64 5.2.3-1.el4.art atomic 344 k
php-imap x86_64 5.2.3-1.el4.art atomic 110 k
php-ldap x86_64 5.2.3-1.el4.art atomic 61 k
php-mbstring x86_64 5.2.3-1.el4.art atomic 1.3 M
php-mysql x86_64 5.2.3-1.el4.art atomic 280 k
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 7 Package(s)
Remove 0 Package(s)
Total download size: 4.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): php-ldap-5.2.3-1.e 100% |=========================| 61 kB 00:00
(2/7): php-4.3.9-3.22.5.x 100% |=========================| 1.4 MB 00:05
(3/7): php-gd-5.2.3-1.el4 100% |=========================| 344 kB 00:00
(4/7): php-mbstring-5.2.3 100% |=========================| 1.3 MB 00:01
(5/7): php-pear-4.3.9-3.2 100% |=========================| 267 kB 00:01
(6/7): php-imap-5.2.3-1.e 100% |=========================| 110 kB 00:00
(7/7): php-xml-5.2.3-1.el 100% |=========================| 330 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-common [ 1/19]warning: /etc/php.ini created as /etc/php.ini.rpmnew
Installing: php-common ####################### [ 1/19]
Installing: php-pdo ####################### [ 2/19]
Updating : php-mysql ####################### [ 3/19]
Updating : php-ldap ####################### [ 4/19]
Updating : php-gd ####################### [ 5/19]
Updating : php-mbstring ####################### [ 6/19]
Updating : php-imap ####################### [ 7/19]
Installing: php-xml ####################### [ 8/19]
Updating : php-pear ####################### [ 9/19]
Updating : php ####################### [10/19]
Cleanup : php-ldap ####################### [11/19]
Cleanup : php ####################### [12/19]
Cleanup : php-gd ####################### [13/19]
Cleanup : php-mbstring ####################### [14/19]
Removing : php-sqlite2 ####################### [15/19]
Cleanup : php-pear ####################### [16/19]
Cleanup : php-imap ####################### [17/19]
Cleanup : php-mysql ####################### [18/19]
Removing : php-domxml ####################### [19/19]
Installed: php-xml.x86_64 0:5.2.3-1.el4.art
Dependency Installed: php-common.x86_64 0:5.2.3-1.el4.art php-pdo.x86_64 0:5.2.3-1.el4.art
Updated: php-pear.x86_64 0:4.3.9-3.22.5
Dependency Updated: php.x86_64 0:4.3.9-3.22.5 php-gd.x86_64 0:5.2.3-1.el4.art php-imap.x86_64 0:5.2.3-1.el4.art php-ldap.x86_64 0:5.2.3-1.el4.art php-mbstring.x86_64 0:5.2.3-1.el4.art php-mysql.x86_64 0:5.2.3-1.el4.art
Replaced: php-domxml.x86_64 0:4.3.9-3.22.3
Complete!
I then did a
Code: Select all
yum info php-pear
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Installed Packages
Name : php-pear
Arch : x86_64
Version: 4.3.9
Release: 3.22.5
Size : 1.2 M
Repo : installed
Summary: PHP Extension and Application Repository Components
Description:
PEAR is a framework and distribution system for reusable PHP
components. This package contains a set of PHP components from the
PEAR repository.
Available Packages
Name : php-pear
Arch : noarch
Epoch : 1
Version: 1.5.0
Release: 5.el4.art
Size : 389 k
Repo : atomic
Summary: PHP Extension and Application Repository framework
Description:
PEAR is a framework and distribution system for reusable PHP
components. This package contains the basic PEAR components.
and since it showed 5 as available I did another
Code: Select all
yum upgrade php-pear
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Could not find update match for php-pear
No Packages marked for Update/Obsoletion
So that didn't work so I tried
Code: Select all
yum upgrade php
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: /usr/bin/php for package: psa-mnemo
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: php-cli = 5.2.3-1.el4.art for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-cli.x86_64 0:5.2.3-1.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.5 is needed by package php-pear
Which is a strange result since I just upgraded to 4.3.9-3.22.5
I hope this isn't too annoying quoting all this, but I thought there might be clues in the details.
Thanks,
Damon
Posted: Tue Jul 17, 2007 8:21 pm
by damon
Success!
Just to let you know, I ran
yum install php-pear
one more time and this time it upgraded php to 5.23
After mv'ing the php.ini and fixing the memory limit, installing the right version of ioncube, it looks cool.
Now on to MySql
Thanks,
Damon