Page 1 of 1

Updating PHP from 5.1.6 to new version does not work

Posted: Tue Jun 24, 2008 12:09 pm
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?

Posted: Sat Jun 28, 2008 7:09 am
by Sempiterna
No one have any idea about this? I probably am not th eonly one encountering this problem.

Posted: Sun Jun 29, 2008 8:11 am
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.

Posted: Sun Jun 29, 2008 1:43 pm
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:

Posted: Sun Jun 29, 2008 5:49 pm
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.

Posted: Mon Jun 30, 2008 7:50 am
by scott
yeah just remove sitebuilder

Posted: Mon Jun 30, 2008 2:40 pm
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.

Posted: Mon Jun 30, 2008 7:18 pm
by Kalimari
If you are not using sitebuilder, then removing it should allow you to update php afterwards...

Posted: Tue Jul 01, 2008 10:47 pm
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?

Posted: Wed Jul 02, 2008 2:53 am
by Kalimari
No, no need to re-install.

Posted: Sun Jul 06, 2008 1:01 pm
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.