$ sudo systemctl start zoneminder.service
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
$ sudo zmpkg.pl start
[sudo] password for gar:
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
[gar@archer ~]$ systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-05-01 06:48:07 CDT; 1min 12s ago
Process: 16893 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)
May 01 06:47:56 archer zmpkg[16893]: INF [Command: start]
May 01 06:47:57 archer zmdc[16906]: INF [Server starting at 17/05/01 06:47:57]
May 01 06:47:57 archer zmdc[16906]: ERR [Can't open pid file at /run/zoneminder/zm.pid]
May 01 06:47:59 archer zmdc[16906]: FAT [Can't bind to /var/lib/zoneminder/sock/zmdc.sock: Permission denied]
May 01 06:48:07 archer zmdc[16903]: FAT [Can't connect: No such file or directory]
May 01 06:48:07 archer zmpkg[16893]: ERR [Unable to run "/usr/bin/zmdc.pl startup", output is "Starting server"]
May 01 06:48:07 archer systemd[1]: zoneminder.service: Control process exited, code=exited status=255
May 01 06:48:07 archer systemd[1]: Failed to start ZoneMinder CCTV recording and security system.
May 01 06:47:57 archer zmdc[16906]: ERR [Can't open pid file at /run/zoneminder/zm.pid]
May 01 06:47:59 archer zmdc[16906]: FAT [Can't bind to /var/lib/zoneminder/sock/zmdc.sock: Permission denied]
May 01 06:48:07 archer zmdc[16903]: FAT [Can't connect: No such file or directory]
May 01 06:48:07 archer zmpkg[16893]: ERR [Unable to run "/usr/bin/zmdc.pl startup", output is "Starting server"]
I am not sure if it is because of setting in a config file, or permissions in apache? I am stumped. Thanks for helping.
Do I need to create a new user 'www-data'? Please pardon my ignorance.
www-data is the web account name for Debian/Ubuntu systems. Redhat systems use apache, nginx, or lighttpd as the account name, depending on what web server is running. Arch linux.... I have no idea what the web account user is. It probably is not any one of the account names I just mentioned.
One way to find out what the name of the web account user is to look inside the main configuration file for your web server. On my redhat system, that config file is /etc/httpd/conf/httpd.conf. It might be somewhere else on Arch linux.