KirkM
Regular Pleskian
If you do a yum update for php and use the atomic repository, BE CAREFUL!
The latest version 5.3.26 from ART repository created a big problem with apache for me with my Plesk 11.0.9 / Centos 5.9 box.
After the update, Apache will fail to start with this error:
If you comment out the php_value lines in php.conf, Apache will start but then it will not load web pages, it will ask the user to download them as files, code and all!!
What I finally figured out was to simply use the yum downgrade command.
You MUST have all the dependencies along with php so I have listed them here (at least the ones for my box). If you have others, you should get a message that there are unresolved dependencies so make note of them and add them to this command. Or, remove packages you may not have installed. The downgrade command does NOT automatically downgrade dependencies the way yum update does. You have to explicitly name each package you want to downgrade.
I am posting this in case it can save someone else from the terror of having your production server go down.
The latest version 5.3.26 from ART repository created a big problem with apache for me with my Plesk 11.0.9 / Centos 5.9 box.
After the update, Apache will fail to start with this error:
Code:
# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
If you comment out the php_value lines in php.conf, Apache will start but then it will not load web pages, it will ask the user to download them as files, code and all!!
What I finally figured out was to simply use the yum downgrade command.
You MUST have all the dependencies along with php so I have listed them here (at least the ones for my box). If you have others, you should get a message that there are unresolved dependencies so make note of them and add them to this command. Or, remove packages you may not have installed. The downgrade command does NOT automatically downgrade dependencies the way yum update does. You have to explicitly name each package you want to downgrade.
Code:
# yum downgrade php.x86_64 php-devel.x86_64 php-ldap.x86_64 php-pdo.x86_64 php-xml.x86_64 php-mysql.x86_64 php-imap.x86_64 php-common.x86_64 php-sqlite.x86_64 php-mbstring.x86_64 php-gd.x86_64 php-cli.x86_64
I am posting this in case it can save someone else from the terror of having your production server go down.