Downgrading php?

Support/Development for PHP
chencho
Forum User
Forum User
Posts: 24
Joined: Sun Jul 06, 2008 5:18 pm

Downgrading php?

Unread post by chencho »

Hi all.

I have Plesk 10.1.1 and php 5.1.6.27 works.

Then i update it to 5.2.17 and my web made with cakephp sotp working (i can see some parts, but not all and admin panel is unavailiable).

Well, i enable test repo and then i update to php 5.3.5, but when i try to restart apache:

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory
[FAILED]

Is any way to downgrade php to 5.1.6? If i try to remove and reinstall all psa need to be reinstalled

yum remove php

Package Arch Version Repository Size
=================================================================================================================================================================================================================
Removing:
php i386 5.3.5-2.el5.art installed 11 M
php x86_64 5.3.5-2.el5.art installed 13 M
Removing for dependencies:
plesk-core x86_64 10.10.1-cos5.build1010110120.18 installed 64 M
plesk-l10n noarch 10.10.1-cos5.build1010110120.18 installed 15 M
pp-sitebuilder noarch 5.1.0-34158.10122501 installed 79 M
psa x86_64 10.1.1-cos5.build1010110120.18 installed 435 k
psa-backup-manager x86_64 10.10.1-cos5.build1010110120.18 installed 13 M
psa-health-monitor noarch 10.10.1-cos5.build1010110112.13 installed 2.3 k
psa-horde noarch 3.3.10-cos5.build1010110119.17 installed 20 M
psa-imp noarch 4.3.9-cos5.build1010110120.12 installed 12 M
psa-ingo noarch 1.2.5-cos5.build1010110112.13 installed 5.0 M
psa-kronolith noarch 2.3.5-cos5.build1010110112.13 installed 6.2 M
psa-migration-agents x86_64 10.10.1-cos5.build1010110120.18 installed 170 k
psa-migration-manager x86_64 10.10.1-cos5.build1010110120.18 installed 1.0 M
psa-mimp noarch 1.1.3-cos5.build1010110112.13 installed 2.7 M
psa-mnemo noarch 2.2.4-cos5.build1010110112.13 installed 4.0 M
psa-passwd noarch 3.1.3-cos5.build1010110112.13 installed 3.7 M
psa-php5-configurator noarch 1.6.1-cos5.build1010110120.18 installed 125
psa-turba noarch 2.3.5-cos5.build1010110112.13 installed 5.9 M
psa-updates noarch 10.1.1-cos5.build1010110112.13 installed 0.0
psa-vhost noarch 10.10.1-cos5.build1010110112.13 installed 178 k

Transaction Summary
=================================================================================================================================================================================================================
Remove 21 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
chencho
Forum User
Forum User
Posts: 24
Joined: Sun Jul 06, 2008 5:18 pm

Re: Downgrading php?

Unread post by chencho »

Ok, i have a problem with mysql

Seems not to be up :(

After restart the service, i casn see one web, but not another web.

Into phpmyadmin i have a warning about lib PHP MySQL 5.0.90 is different than MySQL 5.1.55. into server
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Downgrading php?

Unread post by mikeshinn »

Starting httpd: httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory
Thats not actually a PHP error, that just means you have the system configured to use mod_file_cache and you dont have that module installed, or the path is wrong. Unless you know you are using file_cache (which is unlikely unless you are doing reverse proxying or something) then you can comment that out.

To downgrade an rpm you can use the --downgrade switch, you'll need to download the rpms you want to downgrade or you can use yum downgrade php. You'll want to read up on both of those options as php has lots of dependencies and you dont want to clobber the wrong thing.
Ok, i have a problem with mysql

Seems not to be up :(
What error do you get when you try to start mysql?
Into phpmyadmin i have a warning about lib PHP MySQL 5.0.90 is different than MySQL 5.1.55. into server
You can ignore that.
chencho
Forum User
Forum User
Posts: 24
Joined: Sun Jul 06, 2008 5:18 pm

Re: Downgrading php?

Unread post by chencho »

Was blinded with php and i dont see mysql service was stopped!!

Need to comment skip-bdb from /etc/my.cnf

http://www.atomicorp.com/wiki/index.php/Mysql
Post Reply