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
PHP upgrade on RedHat EL4 with Plesk 8.2.1
Any other ideas?
I already tried the procedures detailed at:
http://www.atomicorp.com/wiki/index.php/PHP
such as:
wget http://isoredirect.centos.org/centos/4/ ... 2.i386.rpm
rpm -i *.rpm
up2date php
and then:
yum upgrade php
Neither worked for me, same results.
http://www.atomicorp.com/wiki/index.php/PHP
such as:
wget http://isoredirect.centos.org/centos/4/ ... 2.i386.rpm
rpm -i *.rpm
up2date php
and then:
yum upgrade php
Neither worked for me, same results.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Re: Any other ideas?
That's not what the wiki entry tells you to do. It says to run yum install php-pear (and then do some config file updating).sysoptech wrote:and then:
yum upgrade php
Lemonbit Internet Dedicated Server Management
Re: Any other ideas?
Thanks a lot for the input.
I started again:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum install php-pear
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> 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-cli for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-cli.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: php = 4.3.9-3.22.9 for package: php-gd
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php-cli
--> 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.
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-common.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-ldap.i386 0:5.2.3-4.el4.art set to be updated
---> 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.
---> 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
Then:
mv /etc/php.ini.rpmnew /etc/php.ini
Which results in:
mv: cannot stat `/etc/php.ini.rpmnew': No such file or directory
Then:
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
Which results in:
mv: cannot stat `/etc/httpd/conf.d/php.conf.rpmnew': No such file or directory
I looked for the files but it seems they were not installed.
Hope you'll help me find what could be wrong.
I started again:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum install php-pear
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> 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-cli for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-cli.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: php = 4.3.9-3.22.9 for package: php-gd
--> Processing Dependency: php-common = 5.2.3-4.el4.art for package: php-cli
--> 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.
---> Package php-mbstring.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-common.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-gd.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-imap.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-mysql.i386 0:5.2.3-4.el4.art set to be updated
---> Package php-ldap.i386 0:5.2.3-4.el4.art set to be updated
---> 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.
---> 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
Then:
mv /etc/php.ini.rpmnew /etc/php.ini
Which results in:
mv: cannot stat `/etc/php.ini.rpmnew': No such file or directory
Then:
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
Which results in:
mv: cannot stat `/etc/httpd/conf.d/php.conf.rpmnew': No such file or directory
I looked for the files but it seems they were not installed.
Hope you'll help me find what could be wrong.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You probably don't have those .rpmnew files, because you were already running PHP 5. RHEL 4 comes with PHP 4 and then installing PHP 5 will get you the new PHP 5 config files.
The problem seems to be that yum plans to install php-xml-5.2.3-2, while -4 is available and yum plans to install the -4 versions for the other PHP packages. You could try removing php-xml and see if that makes the yum update work. If it does you should be able to install php-xml afterwards.
The problem seems to be that yum plans to install php-xml-5.2.3-2, while -4 is available and yum plans to install the -4 versions for the other PHP packages. You could try removing php-xml and see if that makes the yum update work. If it does you should be able to install php-xml afterwards.
Lemonbit Internet Dedicated Server Management