Thanks, running that command gave me a huge amount of errors.
Ended up purging php* and libapache2, and reinstalling both. Now it works.
Thanks for your time!
Update:
after a few minutes ZM stopped working. I cant start the service via console NOR web.
The website shows me that ZM is stopped, via console:
Code: Select all
root@dvr:/home/kamera# service zoneminder start
Job for zoneminder.service failed because the control process exited with error code. See "systemctl status zoneminder.service" and "journalctl -xe" for details.
Code: Select all
root@dvr:/home/kamera# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2016-05-24 21:53:34 EEST; 1min 11s ago
Process: 2894 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)
May 24 21:53:23 dvr sudo[2910]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
May 24 21:53:23 dvr zmdc[2913]: INF [Server starting at 16/05/24 21:53:23]
May 24 21:53:26 dvr zmdc[2913]: FAT [Can't bind: No such file or directory]
May 24 21:53:33 dvr zmdc[2911]: FAT [Can't connect: No such file or directory]
May 24 21:53:34 dvr sudo[2910]: pam_unix(sudo:session): session closed for user www-data
May 24 21:53:34 dvr zmpkg[2894]: ERR [Unable to run "sudo -u www-data /usr/bin/zmdc.pl startup", output is "Starting server"]
May 24 21:53:34 dvr systemd[1]: zoneminder.service: Control process exited, code=exited status=255
May 24 21:53:34 dvr systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
May 24 21:53:34 dvr systemd[1]: zoneminder.service: Unit entered failed state.
May 24 21:53:34 dvr systemd[1]: zoneminder.service: Failed with result 'exit-code'.