yum update from atomic repo breaks php leaving server down

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
lfenison
Forum User
Forum User
Posts: 29
Joined: Mon Jun 14, 2010 8:39 pm

yum update from atomic repo breaks php leaving server down

Unread post by lfenison »

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?
mr_coko
New Forum User
New Forum User
Posts: 3
Joined: Wed Jun 12, 2013 7:42 pm
Location: Roosendaal, NL

Re: yum update from atomic repo breaks php leaving server do

Unread post by mr_coko »

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.
srauscher
New Forum User
New Forum User
Posts: 2
Joined: Thu Jun 13, 2013 4:22 am
Location: Germany

Re: yum update from atomic repo breaks php leaving server do

Unread post by srauscher »

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.

Code: Select all

<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>
Post Reply