do release upgrade problems

Forum for questions and support relating to the 1.29.x releases only.
Locked
jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

do release upgrade problems

Post by jmcgee »

I did this on Ubuntu 14.04 machine, took me to:
jmcgee@burn:/etc/php/7.0$ uname -a
Linux burn 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

And top on that machine shows:
Tasks: 146 total, 1 running, 145 sleeping, 0 stopped, 0 zombie
%Cpu(s): 5.9 us, 0.1 sy, 0.0 ni, 93.7 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32637520 total, 30116560 free, 619844 used, 1901116 buff/cache
KiB Swap: 33238012 total, 33238012 free, 0 used. 31173368 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1369 www-data 20 0 397228 37552 29332 S 6.7 0.1 2:29.21 zmc
1406 www-data 20 0 702244 344828 317768 S 6.7 1.1 8:39.31 zma


So I guess Zoneminder is running.

I can't access the web interface using /zm or :80.

jmcgee@burn:/etc/php/7.0$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Tue 2016-11-29 20:58:53 CST; 1min 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 3261 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Nov 29 20:58:53 burn apache2[3261]: * The apache2 configtest failed.
Nov 29 20:58:53 burn apache2[3261]: Output of config test was:
Nov 29 20:58:53 burn apache2[3261]: AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/zoneminder.conf:
Nov 29 20:58:53 burn apache2[3261]: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server confi
Nov 29 20:58:53 burn apache2[3261]: Action 'configtest' failed.
Nov 29 20:58:53 burn apache2[3261]: The Apache error log may have more information.
Nov 29 20:58:53 burn systemd[1]: apache2.service: Control process exited, code=exited status=1
Nov 29 20:58:53 burn systemd[1]: Failed to start LSB: Apache2 web server.
Nov 29 20:58:53 burn systemd[1]: apache2.service: Unit entered failed state.
Nov 29 20:58:53 burn systemd[1]: apache2.service: Failed with result 'exit-code'.

jmcgee@burn:~$ cat /etc/apache2/conf-enabled/zoneminder.conf
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/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>
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: do release upgrade problems

Post by bbunge »

jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

Re: do release upgrade problems

Post by jmcgee »

Thank you it's running again.
Locked