Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Support/Development for PHP
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

First, I installed yum from atomicrocketturtle.

I'm trying to update php and mySql on my vps (Centos4, Plesk 8.3) When I 'yum update php' it says 3 dependancy errors:
Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear
Error: Missing Dependency: php-common = 5.2.5-2.el4.art is needed by package php-xml
Error: Missing Dependency: php-common = 5.2.5-2.el4.art is needed by package php-pdo

Yum reports that php is 4.3.9-3.22.9 and won't install, update or upgrade it. 'no action required'

As for php-common-5.2.5-2.el4.art, when I try to force the install as mentioned in another post, I get an error that there is a conflict with the versions of /etc/php.ini. I tried the installation with '-t', but it still fails.

Any suggestions on how I can update php and mySql?

Thank you,
Rob
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

Saw that. But I can't get far enough to replace the php.ini.

Here's the result of the yum update:

Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear

So, I thought I would try to focus the efforts instead of the atomic bomb approach. :)

My problem remains, I cannot update/upgrade/install php-pear because of the dependancy problem, and it won't update/upgrade/install php because it says that there is nothing to do.

yum install php-4.3.9-3.22.9
Setting up Install Process
Setting up repositories
plesk 100% |=========================| 951 B 00:00
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
Parsing package install arguments
Nothing to do

Thank you for your help!
Rob
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

A little more information that might be helpful (I'm a newbie, so this may be all that is necessary but I don't know what to do with it)

This is similar to another post http://atomicrocketturtle.com/forum/vie ... ht=phppear

Based on what worked there, I ran 'yum info php-pear'. The output says I have version 4.3.9 and that version 1.5.0 is available...

yum info php-pear
Setting up repositories
plesk 100% |=========================| 951 B 00:00
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
Installed Packages
Name : php-pear
Arch : x86_64
Version: 4.3.9
Release: 3.22.9
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.

In the other post, they were able to 'yum upgrade php-pear'. I'm not, and I think it is because of the version # listed. Is there something I can change to fix this?

Thank you again,
Rob
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

Some more info...

From another post, I enabled the centosplus repository and disabled the atomic repository and tried to update php. It gave me the following:

Code: Select all

--> Finished Dependency Resolution
Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear
since yum reports

Code: Select all

Installed Packages
Name   : php
Arch   : x86_64
Version: 4.3.9
Release: 3.22.9
Size   : 3.6 M
Repo   : installed
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)

php is 4.3.9-3.22.9,
I would think that both of these requirements are fulfilled.

Any help is very much appreciated.

Thank you,
Rob
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

It took a while, but I got it done. I'll share the steps, both for my own future reference and the community's.

Since my server is CentOS 4, I needed to implement the CentOS Web Stack: http://wiki.centos.org/Repositories/Cen ... OSWebStack. That involved enabling CentOSPlus and disabling certain packages from the Base and Extras repositories.

It still wouldn't work to upgrade/update php by itself -> there were file conflicts with mySql files.

So, I put an exclude on the atomic repository for php so it would get php from centosplus and it could get anything else it wanted from atomic. ("exclude=php*").

Lastly, I had to 'yum remove sqlite2'. This also took with it a sb_publish package for sitebuilder. If I ever need it, I'll deal with it then.

Then I had to 'yum update' and everything worked. I'm now on php 5.1.6 and mySQL 5.0.54 and everything appears to be working fine.

Thanks to everyone for all the posts. While my particular answer wasn't here, reading it all led to the understanding that ultimately allowed me to fix the issue.

Have a Great Day!
Rob
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Either take PHP from CentOS Plus or from ART. Now you have the packages from CentOS Plus.

Why do you say you need the CentOS WebStack from CentOS Plus?
Lemonbit Internet Dedicated Server Management
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

First, because the packages from ART for php wouldn't install.

Second, during my research, I discovered that the centosplus channel was developed to address weaknesses of Centos4 as it related to its use as web servers. As a result, it includes upgrades to common packages needed by web servers. (I also saw something that said it wasn't necessary for more recent Centos versions (5/6?). I can't find the reference sites now...)

But, since my server is a plesk vps, I needed to maintain compatibility as much as possible. So, the resulting configuration helps me upgrade without breaking plesk.

Ultimately, that is what I wanted to do...

Best regards,
Rob
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Still, this is strange as ART's packages are also designed to work with Plesk servers. I think you may have needed to upgrade php-pear explicitly or something.
Lemonbit Internet Dedicated Server Management
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

I tried to upgrade php-pear explicitly, and it had an unfulfilled dependance on the php version that I already had... (See my first post.)

I considered removing the existing php-pear and reinstalling it from ART, but it wanted to take out plesk as well since it depended on it. I abandoned that path. (same for php.)

When I tried to update php purely from centosplus, it also still had the dependancy problem for php-pear.

All of these were documented in previous posts.

It wasn't until I did a 'yum update' <all> with centosplus that it appeared it would meet all of the dependancies, except for the sqlite2 one.

It probably would have worked to 'yum update' purely from centosplus, but I was afraid that something was going to break plesk. Since I knew that ART was specifically designed not to break plesk, I integrated it into the final solution. <It looked like it was going to update a LOT of packages, and some were 'psa-'. I wasn't confident in the source of those packages, so frankly, that scared me.>

If you search through the archives, you'll find that this is not a unique problem. Various solutions have worked for others. I tried them, and it wasn't until I created the 'repository pointing matrix' that I did that it would work for me.

Best regards,
Rob
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

The psa-* packages that ART hosts are the same packages that SWsoft provides. If you saw some in yum update this probably means you're not running the latest version of Plesk.

Both CentOS Plus and ART work just fine with Plesk (but I advise to just use one of them). Really, when yum tells you there are a lot of packages to upgrade, you really shouldn't get scared, but you should start upgrading your machine frequently. Not installing updates just means you're probably running software with known security vulnerabilities. Now, that's scary.
Lemonbit Internet Dedicated Server Management
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Try this and output what you get please. I know you said you tried this but humor me please.
yum update php-pear
ramorius
Forum User
Forum User
Posts: 10
Joined: Thu Jan 24, 2008 6:25 pm

Can't upgrade to php5 from php 4.3.9 on centos4/plesk8.3

Unread post by ramorius »

I'm not sure why I did this, as it is already updated, but here it is

Code: Select all

[]# yum update php-pear
Setting up Update Process
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
update                                                           951 B 00:00
base                      100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
contrib                   100% |=========================|  951 B    00:00
centosplus                100% |=========================|  951 B    00:00
http://wuarchive.wustl.edu/pub/linux/distributions/centos/4.6/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 500: Internal Server Error
Trying other mirror.
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz                                                   74 kB 00:01
sqlite cache needs updating, reading in metadata
update    : ################################################## 249/249
primary.xml.gz            100% |=========================|  83 kB    00:00
sqlite cache needs updating, reading in metadata
atomic    : ################################################## 241/241
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS / Red Hat Enterprise Linux 4 - atomicrocketturtle.com
Finished
Could not find update match for php-pear
No Packages marked for Update/Obsoletion


[]# yum info php-pear
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
contrib                   100% |=========================|  951 B    00:00
centosplus                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 from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS / Red Hat Enterprise Linux 4 - atomicrocketturtle.com
Finished
Installed Packages
Name   : php-pear
Arch   : noarch
Epoch  : 1
Version: 1.4.11
Release: 1.el4s1.1
Size   : 1.8 M
Repo   : installed
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.

Rob
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

He excluded php* from ART, so yum will not consider any php* packages from ART at the moment.
Lemonbit Internet Dedicated Server Management
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

He excluded php* from ART, so yum will not consider any php* packages from ART at the moment.
Ah, ok. Makes sense now.

What I had to do from the base install of CentOS 4 was upgrade php-pear and then I could go back and upgrade php itself. The php-pear package is separate from the php packages (ie it's not going to be php-pear-5.2.X).
The error you're encountering is this line
Error: Missing Dependency: php = 4.3.9-3.22.9 is needed by package php-pear
The rest are just saying that pear excluded packages it needed.
Post Reply