You are not logged in.

#1 2015-05-21 16:07:10

Winston-Wolfe
Member
Registered: 2013-06-01
Posts: 49

Zoneminder | Syntax error, Invalid command 'php_admin_value'

Zoneminder is basically the first thing I'm trying to install after booting into a brand new arch install.
I followed the zoneminder wiki entry to a T, yet the last steps are giving me trouble.

$ systemctl start httpd

 Job for httpd.service failed. See "systemctl status httpd.service" and "journalctl -xe" for details.

$ journalctl -xe

...
-- Unit httpd.service has begun starting up.
May 20 15:15:10 netbook-server apachectl[16575]: AH00526: Syntax error on line 11 of /etc/httpd/conf/extra/httpd-zoneminder.conf:
May 20 15:15:10 netbook-server apachectl[16575]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
May 20 15:15:10 netbook-server systemd[1]: httpd.service: control process exited, code=exited status=1
May 20 15:15:10 netbook-server systemd[1]: Failed to start Apache Web Server.
-- Subject: Unit httpd.service has failed
...

/etc/httpd/conf/extra/httpd-zoneminder.conf

# /etc/httpd/conf/extra/httpd-zoneminder.conf
# Config for zoneminder web app

Alias /zm "/srv/http/zoneminder"
<Directory "/srv/http/zoneminder">
  Options -Indexes +MultiViews +FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
  # Provide PHP access to important directories
  php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/zm.conf:/srv/http/zoneminder/:/var/cache/zoneminder/:/srv/zoneminder/socks/:/var/log/zoneminder/"

</Directory>

ScriptAlias /cgi-bin "/srv/http/cgi-bin"
<Directory "/srv/http/cgi-bin">
  AllowOverride None
  Options +ExecCGI +FollowSymLinks
  Order allow,deny
  Allow from all
</Directory>

The comments on the AUR page seem to address this issue, but I'm having trouble understanding what the solution is.

Offline

#2 2015-08-03 18:41:07

troydwill
Member
Registered: 2015-08-03
Posts: 10

Re: Zoneminder | Syntax error, Invalid command 'php_admin_value'

You need to configure Apache to load mod_php. Please see https://wiki.archlinux.org/index.php/Zo … Enable_PHP.

Offline

Board footer

Powered by FluxBB