My server was working until a yum update. A bunch of php items came thru from the atomic repo and now apache will not start.
The error message is...
Starting httpd: Syntax error on line 19 of /var/www/vhosts/deltatechnicalservices.com/conf/vhost_ssl.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
The items that yum updated which broke this are...
Jun 12 12:20:28 Updated: php-common-5.3.26-19.el5.art.x86_64
Jun 12 12:20:28 Updated: php-cli-5.3.26-19.el5.art.x86_64
Jun 12 12:20:29 Updated: php-5.3.26-19.el5.art.x86_64
Jun 12 12:20:30 Updated: php-pdo-5.3.26-19.el5.art.x86_64
Jun 12 12:20:30 Updated: php-mbstring-5.3.26-19.el5.art.x86_64
Jun 12 12:20:34 Updated: php-devel-5.3.26-19.el5.art.x86_64
Jun 12 12:20:34 Updated: php-soap-5.3.26-19.el5.art.x86_64
Jun 12 12:20:35 Updated: php-ldap-5.3.26-19.el5.art.x86_64
Jun 12 12:20:35 Updated: php-mysql-5.3.26-19.el5.art.x86_64
Jun 12 12:20:35 Updated: php-gd-5.3.26-19.el5.art.x86_64
Jun 12 12:20:36 Updated: php-xml-5.3.26-19.el5.art.x86_64
Jun 12 12:20:36 Updated: php-mcrypt-5.3.26-19.el5.art.x86_64
Jun 12 12:20:37 Updated: php-common-5.3.26-19.el5.art.i386
Jun 12 12:20:37 Updated: php-imap-5.3.26-19.el5.art.x86_64
Jun 12 12:20:37 Updated: php-ldap-5.3.26-19.el5.art.i386
Jun 12 12:20:37 Updated: php-sqlite-5.3.26-19.el5.art.x86_64
Has anyone else seen this?
yum update from atomic repo breaks php leaving server down
Re: yum update from atomic repo breaks php leaving server do
Hi,
the update breaks the file /etc/httpd/conf/php.conf removing lines like:
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
which are needed to load the PHP module for Apache. For me it solved the problem by adding above lines at the TOP of the file and restart Apache.
the update breaks the file /etc/httpd/conf/php.conf removing lines like:
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
which are needed to load the PHP module for Apache. For me it solved the problem by adding above lines at the TOP of the file and restart Apache.
Re: yum update from atomic repo breaks php leaving server do
In the /etc/httpd/conf.d/php.conf the LoadModule Directive is missing.
Add the following to the begin of the file and restart Webserver.
Add the following to the begin of the file and restart Webserver.
Code: Select all
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>