iconnor wrote:You havn't set the timezone is the right php.ini file. Normally the one you need to edit is /etc/php/apache2/php.ini
For Ubuntu 16.04 it is: nano /etc/php/7.0/apache2/php.ini
With that said it may be different if you have done an upgrade. However, I have not successfully upgraded a running ZM Ubuntu install to 16.04 since the official release. Am having issues with MySQL going from 5.5 (14.04) or 5.6 (15.10) to 5.7 (16.04). Will get it to work in time...
I ran in to a lot of trubble from anouther service blocking the install of mysql. Solved that but I am now unable to start apache2.
Anyone knows what the problem is? PHP not properly installed?
Log:
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 lun 2016-05-02 09:57:47 CEST; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 1225 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
mag 02 09:57:47 BERTILIT apache2[1225]: * The apache2 configtest failed.
mag 02 09:57:47 BERTILIT apache2[1225]: Output of config test was:
mag 02 09:57:47 BERTILIT apache2[1225]: AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/zoneminder.conf:
mag 02 09:57:47 BERTILIT apache2[1225]: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
mag 02 09:57:47 BERTILIT apache2[1225]: Action 'configtest' failed.
mag 02 09:57:47 BERTILIT apache2[1225]: The Apache error log may have more information.
mag 02 09:57:47 BERTILIT systemd[1]: apache2.service: Control process exited, code=exited status=1
mag 02 09:57:47 BERTILIT systemd[1]: Failed to start LSB: Apache2 web server.
mag 02 09:57:47 BERTILIT systemd[1]: apache2.service: Unit entered failed state.
mag 02 09:57:47 BERTILIT systemd[1]: apache2.service: Failed with result 'exit-code'.
Is it enabled? That error is saying it doesn't understand php_flag, which is a perfectly legitimate command in zoneminder.conf if php module is loaded.
apachectl -M should see php7_module in the list.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
I've just gotten an upgrade from Ubuntu 14.04 - ZM 1.29.0 to 16.04 - 1.29.0 to work. Folks, it was not pretty! I need to do it again to document the steps. I, too, had a problem with the php_flag... which I'll tell you how to fix when I get it written up.