Cannot get ZM 1.36 to work

Discussions related to the 1.36.x series of ZoneMinder
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

Try this and look for the module -

a2query -m

You need the php Apache module for it to work.
-
smacgre
Posts: 14
Joined: Sun Dec 13, 2020 4:35 pm

Re: Cannot get ZM 1.36 to work

Post by smacgre »

Is it the wrong version of php ...?

stuart@stuart-PC-X010178:~$ a2query -m
autoindex (enabled by maintainer script)
reqtimeout (enabled by maintainer script)
env (enabled by maintainer script)
php7.4 (enabled by maintainer script)
authz_core (enabled by maintainer script)
access_compat (enabled by maintainer script)
authn_file (enabled by maintainer script)
mime (enabled by maintainer script)
filter (enabled by maintainer script)
rewrite (enabled by site administrator)
expires (enabled by site administrator)
authn_core (enabled by maintainer script)
negotiation (enabled by maintainer script)
auth_basic (enabled by maintainer script)
setenvif (enabled by maintainer script)
mpm_prefork (enabled by maintainer script)
deflate (enabled by maintainer script)
headers (enabled by site administrator)
cgi (enabled by site administrator)
dir (enabled by maintainer script)
status (enabled by maintainer script)
authz_host (enabled by maintainer script)
authz_user (enabled by maintainer script)
alias (enabled by maintainer script)
stuart@stuart-PC-X010178:~$
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

I’m sure it’s the same one I’m using. Are sure you use the full module name.
-
smacgre
Posts: 14
Joined: Sun Dec 13, 2020 4:35 pm

Re: Cannot get ZM 1.36 to work

Post by smacgre »

>> Are sure you use the full module name.
I don't use anything myself, just the zm software out of the box
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

Try running the a2enmod command with the full module name.
-
smacgre
Posts: 14
Joined: Sun Dec 13, 2020 4:35 pm

Re: Cannot get ZM 1.36 to work

Post by smacgre »

sudo a2enmod php7.4
ERROR: /etc/apache2/mods-enabled/php7.4.load is a dangling symlink!
ERROR: Module php7.4 does not exist!

If I knew anything about apache, this might be a clue?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

I'd suggest working through the Wiki install process linked to.

For a quick thing, try - installing libapache2-mod-php
-
smacgre
Posts: 14
Joined: Sun Dec 13, 2020 4:35 pm

Re: Cannot get ZM 1.36 to work

Post by smacgre »

synaptic package manager shows libapache2-mod-php8.1 installed with apache2 server 2.4.52-1ubuntu4.4

if that makes things any clearer.
I removed the dangling symbolic link, to no benefit.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

Not really. Sounds like the system is in a mess.

Have you tried enabling the php module version it claims is installed? Do that if not.
-
smacgre
Posts: 14
Joined: Sun Dec 13, 2020 4:35 pm

Re: Cannot get ZM 1.36 to work

Post by smacgre »

sudo a2enmod php8.1
ran and after "systemctl restart apache2", "a2query -m" showed "php8.1 (enabled by site administrator)".
However running zm (http://stuart-pc-x010178/zm) in the browser still prints a script, rather than executing it.

Finally: using a different browser (chromium instead of firefox) WORKED!
Perhaps firefox needs settings changed - I'll explore.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Cannot get ZM 1.36 to work

Post by Magic919 »

Might just be cache in Firefox.
-
Post Reply