PHP upgrade on RedHat EL4 with Plesk 8.2.1
Posted: Thu Oct 25, 2007 2:27 pm
Mi server is a RedHat EL4 with Plesk 8.2.1 and it has PHP 4.3.9-3.22.9
I need to upgrade it to PHP 5.x so tried the following:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
Resulting:
Atomic Archive installer, version 0.9.13
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Yum was not detected. Attempting to resolve..
Redhat Enterprise Linux Detected..
If you do not have a valid RHEL subscription, this utility can be used
to convert this system to centos. If you do have a valid subscription
just hit enter, or n to continue. The installer will add the [atomic]
channel to up2date, and *attempt* to install yum.
Convert this system to CentOS? (y/n) [Default: n]:
Attempting to configure [atomic] for up2date
Attempting to set up yum for RHEL
Installing RPM GPG key: OK
Preparing... ########################################### [100%]
1:python-elementtree ########################################### [ 20%]
2:sqlite ########################################### [ 40%]
3:yum ########################################### [ 60%]
4:python-urlgrabber ########################################### [ 80%]
5:python-sqlite ########################################### [100%]
Downloading atomic-release-1.0-6.el4.art.noarch.rpm: OK
The Atomic Rocket Turtle archive has now been installed and configured for your
system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages
First I tried:
up2date php
Resulting:
Fetching Obsoletes list for channel: rhel-i386-es-4...
########################################
Fetching Obsoletes list for channel: rhel-i386-es-4-extras...
########################################
Fetching Obsoletes list for channel: product-distr-rpms...
Fetching Obsoletes list for channel: thirdparty-rpms...
Fetching Obsoletes list for channel: product-updates-rpms...
Fetching Obsoletes list for channel: atomic...
Fetching obsoletes list for http://www.atomicorp.com/channels/atomic/redhat/4/i386...
#######################################
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
php 5.2.3 4.el4.art i386
Testing package set / solving RPM inter-dependencies...
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
There was a package dependency problem. The message was:
Unresolvable chain of dependencies:
php-domxml-4.3.9-3.22.9 requires php = 4.3.9-3.22.9
php-pear-4.3.9-3.22.9 requires php = 4.3.9-3.22.9
The following packages were added to your selection to satisfy dependencies:
Package Required by
----------------------------------------------------------------------------
Also tried:
yum upgrade php
Which resulted in:
Setting up Upgrade Process
Setting up repositories
atomic 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 93 kB 00:00
atomic : ################################################## 264/264
Added 264 new packages, deleted 0 old in 1.66 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
php-5.2.3-4.el4.art.i386. 100% |=========================| 13 kB 00:00
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-imap
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-pear
--> Processing Dependency: php-cli = 5.2.3-4.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mysql
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-mbstring to pack into transaction set.
php-mbstring-5.2.3-4.el4. 100% |=========================| 12 kB 00:00
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-cli to pack into transaction set.
php-cli-5.2.3-4.el4.art.i 100% |=========================| 13 kB 00:00
---> Package php-cli.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-common to pack into transaction set.
php-common-5.2.3-4.el4.ar 100% |=========================| 16 kB 00:00
---> Package php-common.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-gd to pack into transaction set.
php-gd-5.2.3-4.el4.art.i3 100% |=========================| 12 kB 00:00
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-imap to pack into transaction set.
php-imap-5.2.3-4.el4.art. 100% |=========================| 12 kB 00:00
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-pear to pack into transaction set.
php-pear-1.5.0-5.el4.art. 100% |=========================| 26 kB 00:00
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
---> Downloading header for php-mysql to pack into transaction set.
php-mysql-5.2.3-4.el4.art 100% |=========================| 13 kB 00:00
---> Package php-mysql.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-5.2.3-4.el4.art. 100% |=========================| 12 kB 00:00
---> Package php-ldap.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-xml to pack into transaction set.
php-xml-5.2.3-2.el4.art.i 100% |=========================| 13 kB 00:00
---> Package php-xml.i386 0:5.2.3-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Processing Dependency: php-pdo for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-pdo to pack into transaction set.
php-pdo-5.2.3-4.el4.art.i 100% |=========================| 12 kB 00:00
---> Package php-pdo.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-xml
If I check PHP version:
php -v
PHP 4.3.9 (cgi) (built: Sep 12 2007 11:09:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
PHP has not be upgraded. What could I be doing wrong?
Thanks in advance.
Raul
I need to upgrade it to PHP 5.x so tried the following:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
Resulting:
Atomic Archive installer, version 0.9.13
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Yum was not detected. Attempting to resolve..
Redhat Enterprise Linux Detected..
If you do not have a valid RHEL subscription, this utility can be used
to convert this system to centos. If you do have a valid subscription
just hit enter, or n to continue. The installer will add the [atomic]
channel to up2date, and *attempt* to install yum.
Convert this system to CentOS? (y/n) [Default: n]:
Attempting to configure [atomic] for up2date
Attempting to set up yum for RHEL
Installing RPM GPG key: OK
Preparing... ########################################### [100%]
1:python-elementtree ########################################### [ 20%]
2:sqlite ########################################### [ 40%]
3:yum ########################################### [ 60%]
4:python-urlgrabber ########################################### [ 80%]
5:python-sqlite ########################################### [100%]
Downloading atomic-release-1.0-6.el4.art.noarch.rpm: OK
The Atomic Rocket Turtle archive has now been installed and configured for your
system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages
First I tried:
up2date php
Resulting:
Fetching Obsoletes list for channel: rhel-i386-es-4...
########################################
Fetching Obsoletes list for channel: rhel-i386-es-4-extras...
########################################
Fetching Obsoletes list for channel: product-distr-rpms...
Fetching Obsoletes list for channel: thirdparty-rpms...
Fetching Obsoletes list for channel: product-updates-rpms...
Fetching Obsoletes list for channel: atomic...
Fetching obsoletes list for http://www.atomicorp.com/channels/atomic/redhat/4/i386...
#######################################
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
php 5.2.3 4.el4.art i386
Testing package set / solving RPM inter-dependencies...
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
There was a package dependency problem. The message was:
Unresolvable chain of dependencies:
php-domxml-4.3.9-3.22.9 requires php = 4.3.9-3.22.9
php-pear-4.3.9-3.22.9 requires php = 4.3.9-3.22.9
The following packages were added to your selection to satisfy dependencies:
Package Required by
----------------------------------------------------------------------------
Also tried:
yum upgrade php
Which resulted in:
Setting up Upgrade Process
Setting up repositories
atomic 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 93 kB 00:00
atomic : ################################################## 264/264
Added 264 new packages, deleted 0 old in 1.66 seconds
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
php-5.2.3-4.el4.art.i386. 100% |=========================| 13 kB 00:00
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-imap
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-pear
--> Processing Dependency: php-cli = 5.2.3-4.el4.art for package: php
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-domxml
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mysql
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-mbstring to pack into transaction set.
php-mbstring-5.2.3-4.el4. 100% |=========================| 12 kB 00:00
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-cli to pack into transaction set.
php-cli-5.2.3-4.el4.art.i 100% |=========================| 13 kB 00:00
---> Package php-cli.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-common to pack into transaction set.
php-common-5.2.3-4.el4.ar 100% |=========================| 16 kB 00:00
---> Package php-common.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-gd to pack into transaction set.
php-gd-5.2.3-4.el4.art.i3 100% |=========================| 12 kB 00:00
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-imap to pack into transaction set.
php-imap-5.2.3-4.el4.art. 100% |=========================| 12 kB 00:00
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-pear to pack into transaction set.
php-pear-1.5.0-5.el4.art. 100% |=========================| 26 kB 00:00
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
---> Downloading header for php-mysql to pack into transaction set.
php-mysql-5.2.3-4.el4.art 100% |=========================| 13 kB 00:00
---> Package php-mysql.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-5.2.3-4.el4.art. 100% |=========================| 12 kB 00:00
---> Package php-ldap.i386 0:5.2.3-4.el4.art set to be updated
---> Downloading header for php-xml to pack into transaction set.
php-xml-5.2.3-2.el4.art.i 100% |=========================| 13 kB 00:00
---> Package php-xml.i386 0:5.2.3-2.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Processing Dependency: php-pdo for package: php-mysql
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-pdo to pack into transaction set.
php-pdo-5.2.3-4.el4.art.i 100% |=========================| 12 kB 00:00
---> Package php-pdo.i386 0:5.2.3-4.el4.art set to be updated
--> Running transaction check
--> Processing Dependency: php-common = 5.2.3-2.el4.art for package: php-xml
--> Finished Dependency Resolution
Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-xml
If I check PHP version:
php -v
PHP 4.3.9 (cgi) (built: Sep 12 2007 11:09:31)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
PHP has not be upgraded. What could I be doing wrong?
Thanks in advance.
Raul