Updating PHP from 5.1.6 to new version does not work

Support/Development for PHP
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Updating PHP from 5.1.6 to new version does not work

Unread post by Sempiterna »

Hi,

I am using PHP 5.1.6, but due to new functions i need any verion 5.2.0 or up. I first tried upgrading to Plesk 8.3 (on FC5), but that did not upgrade the PHP, then i tried the upgrade path via YUM (after first using the atomic installer to create the repos), but then i got the following error:
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php.i386 0:5.2.6-1.fc5.art set to be updated
--> Running transaction check
--> Processing Dependency: /usr/bin/php for package: psa-horde
--> Processing Dependency: php = 5.1.6-1.6 for package: php-pdo
--> Processing Dependency: php = 5.1.6-1.6 for package: php-mysql
--> Processing Dependency: php = 5.1.6-1.6 for package: php-mbstring
--> Processing Dependency: php-common = 5.2.6-1.fc5.art for package: php
--> Processing Dependency: php = 5.1.6-1.6 for package: php-snmp
--> Processing Dependency: php < 5.2.0 for package: php-sqlite
--> Processing Dependency: php = 5.1.6-1.6 for package: php-xml
--> Processing Dependency: php = 5.1.6-1.6 for package: php-gd
--> Processing Dependency: php-cli = 5.2.6-1.fc5.art for package: php
--> Processing Dependency: php = 5.1.6-1.6 for package: php-imap
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package php-mysql.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-cli.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-common.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-xml.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-gd.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-mbstring.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-pdo.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-imap.i386 0:5.2.6-1.fc5.art set to be updated
---> Package php-snmp.i386 0:5.2.6-1.fc5.art set to be updated
--> Running transaction check
--> Processing Dependency: php < 5.2.0 for package: php-sqlite
--> Finished Dependency Resolution
Error: Missing Dependency: php < 5.2.0 is needed by package php-sqlite
I tried to remove sqlite, but it seems i'm not allowed to because its used by:

sb-publish-3.0.1-200610111449.noarch

According to the atomic wiki page about PHP, i should be able to upgrade this just fine, but unfortunately i cant.

Any ideas on how to upgrade?
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Unread post by Sempiterna »

No one have any idea about this? I probably am not th eonly one encountering this problem.
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

I'd suggest checking what version of php-sqlite you have installed and seeing if you can upgrade that separately, then try upgrading php afterwards... Other than that not sure what to suggest!

FYI: Plesk updates will not upgrade system to latest php.
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Unread post by Sempiterna »

Sqlite is the same version as my PHP... 5.1.6. I can't seem to update it, because it probably has to be the same version as my PHP. Yum informs me that there are no packages marked for updating.

So this is quite strange. I can't update it because its the same version as PHP, and i can't update PHP, because Sqlite needs php 5.1.6. This is becoming very frustrating :shock:
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

Yeah, it can be frustrating sometimes, I usually have to do a lot of Googling to find an answer; there is bound to be someone with the same or a very similar issue.

Do you actually use/need Plesk Sitebuilder (which is what requires sb-publish ->sq-lite and holds up the upgrade)?

If this is not a production box, it may be worth considering removing and reinstalling things such as php/sitebuilder etc... However, I would not go solely on my recommendation; but doing all the install/upgrades using the Atomic Yum repos has never given me any major problems as you are experiencing...

Others on this forum may have suggestions... Sorry I can't be more help.
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 »

yeah just remove sitebuilder
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Unread post by Sempiterna »

Thanks for the answer :) I did not know that that package was for SiteBuilder. I do not use sitebuilder, so i'll try removing it tomorrow and see what happens.

It is indeed a production box, so i'd rather not completely remove and reinstall PHP because that would probably mean my telephone going nova on me :?

I'll try it and report back here so if it's solved, people will have one less headache.
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

If you are not using sitebuilder, then removing it should allow you to update php afterwards...
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Unread post by Sempiterna »

At first it did not work. I removed sitebuilder, but then it was still complaining about sqlite. So only after removing sqlite was i able to install the new php.

Is sqlite needed by Plesk other than for sitebuilder? What i mean is.. do i need to reinstall sqlite?
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

No, no need to re-install.
Sempiterna
Forum Regular
Forum Regular
Posts: 153
Joined: Tue Jun 24, 2008 12:05 pm

Unread post by Sempiterna »

Actually, for those having the same problem... don't forget to re-add the ioncube zend extension if you upgrade from 5.1.x to 5.2.x, or some applications may not work. I found that out after a day when people started complaining about errors on one of my sites.
Post Reply