1st time install: invalid command php_flag
Posted: Sun Oct 08, 2017 2:25 am
Running Debian on a Tinker Board. Fresh installation. Following instructions here:
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
Everything is fine up until a2enmod cgi:
AH00526: Syntax error on line 18 of /etc/apache2/conf-enabled/zoneminder.conf:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Module cgid already enabled
I have no clue what I could be missing.
zoneminder.conf:
########################
#
# Remember to enable cgi mod and serve-cgi-bin.conf configuration
#
# a2enmod cgi
# a2enconf serve-cgi-bin.conf
#
########################
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
php_flag register_globals off
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
Everything is fine up until a2enmod cgi:
AH00526: Syntax error on line 18 of /etc/apache2/conf-enabled/zoneminder.conf:
Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Module cgid already enabled
I have no clue what I could be missing.
zoneminder.conf:
########################
#
# Remember to enable cgi mod and serve-cgi-bin.conf configuration
#
# a2enmod cgi
# a2enconf serve-cgi-bin.conf
#
########################
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
php_flag register_globals off
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>