1st time install: invalid command php_flag

Forum for questions and support relating to the 1.30.x releases only.
Locked
RadOD
Posts: 4
Joined: Sun Oct 08, 2017 2:19 am

1st time install: invalid command php_flag

Post by RadOD »

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>
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1st time install: invalid command php_flag

Post by bbunge »

That procedure was updated Friday night and I had no isues. I will run it again on a fresh install. Stay tuned...

Edit: Are you using the Tinker OS from the Asus web site?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1st time install: invalid command php_flag

Post by bbunge »

Just ran the Zoneminder install on a fresh Debian 9.1.0 AMD64 with no errors. If you used the ARM package from Asus on the Tinker I suggest trying the ARM pacakage from the Debian netinst web site. Your error is not with Zoneminder.
RadOD
Posts: 4
Joined: Sun Oct 08, 2017 2:19 am

Re: 1st time install: invalid command php_flag

Post by RadOD »

Is there a reason to use 9.1 over 9.2?

I agree the problem is not with zoneminder, it is somehow with php and apache.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1st time install: invalid command php_flag

Post by bbunge »

RadOD wrote: Sun Oct 08, 2017 3:30 pm Is there a reason to use 9.1 over 9.2?

I agree the problem is not with zoneminder, it is somehow with php and apache.
looks like 9.2 was released less than a day ago. And the version I installed was in fact 9.2!
Locked