Starting httpd: Syntax error on line 1052 of /etc/httpd/conf/httpd.conf

Apache won’t start… I get the following error

Starting httpd: Syntax error on line 1052 of /etc/httpd/conf/httpd.conf:
Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

Can someone help??

Have you checked that php5 is being loaded as a module?

Did this just start to happen on a working system, or is this a new build?

HI there … server was working fine… this just happened… seems like php5 is not loading… how can I fix this?

I have another server running fine and I noticed this…

Configuration file Purpose Actions
/etc/php.ini Global PHP configuration Manage Edit Manually

/opt/rh/php55/root/etc/php.ini PHP 5.5 Manage Edit Manually

Edit other PHP configuration file:

AND Problem server has only this…

.Configuration file Purpose Actions

/etc/php.ini Global PHP configuration Manage Edit Manually

Edit other PHP configuration file:

----->missing /opt/rh/php55/root/etc/php.ini PHP 5.5 Manage Edit Manually !!

2 things…

  1. why did this happen?

  2. how do I fix this?

Thank you

Newbie

First thing to try is copy the /opt/rh/php55/root/etc/php.ini from the working system, and put it in the same directory as the non-working system.

The thing is, files do not have a habit of deleting themselves! So, something happened to cause this.

I would disable mod_php and remove all config directives that set mod_php options. Use mod_fcgid or php-fpm instead. mod_php is never recommended in a modern system.

server still down and Im still lost… can you help this total newbie?

Thanks,

JP