Invalid command ‘php_value’ and Syntax Error of php.conf
Receiving the following when trying to restart apache (httpd):
[root@localhost ~]# 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]
I found that in /etc/httpd/conf.d/php.conf the following directives for loading PHP modules was missing. You can resolve this issue by just adding the following to /etc/httpd/conf.d/php.conf:
<IfModule prefork.c> LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c> LoadModule php5_module modules/libphp5-zts.so </IfModule>
Now, restarting apache works without any problems.
Hey,
Thanks, your tip just saved some time.
I'm trying to install owncloud over an Archlinux for Arm on a Wandboard according to archlinux wiki.
I just had to uncomment "LoadModule php5_module modules/libphp5.so" in /etc/httpd/conf.d/php.conf and it works.
Thanks again,
Guillaume
Thank you very much.. nice tip.