I'm trying to test ZM on Arch Linux. I wonder if anyone has managed to get version 1.30.x working on this platform in the first place?
Unfortunately as there is no package for it yet, and having tried the one from the AUR I had issues getting the API to work as I ran into the PHP7 and previous version of Cake issue....
specified by here: viewtopic.php?f=34&t=24306&start=15
What I did so far is a git pull using a little help from these guides for Ubuntu:
https://github.com/pliablepixels/zmNinj ... om-Package
https://github.com/pliablepixels/zmNinj ... rom-source
So the steps I ran were:
Code: Select all
git clone https://github.com/ZoneMinder/ZoneMinder.git
cd ZoneMinder/
git submodule init
git submodule update
cmake .
make
sudo make install
sudo ./zmlinkcontent.sh
....and then followed on from:
Code: Select all
ScriptAlias /zm/cgi-bin "/usr/local/libexec/zoneminder/cgi-bin"
<Directory "/usr/local/libexec/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/local/share/zoneminder/www
<Directory /usr/local/share/zoneminder/www>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/local/share/zoneminder/www/api>
AllowOverride All
</Directory>
Code: Select all
-- Unit zoneminder.service has begun starting up.
Jun 15 23:08:38 Zoneminder zmpkg[791]: INF [Sanity checking States table...]
Jun 15 23:08:39 Zoneminder zmpkg[791]: INF [Command: start]
Jun 15 23:08:39 Zoneminder sudo[798]: http : unknown user: true
Jun 15 23:08:39 Zoneminder zmpkg.pl[791]: sudo: unknown user: true
Jun 15 23:08:39 Zoneminder zmpkg.pl[791]: sudo: unable to initialize policy plugin
Jun 15 23:08:39 Zoneminder su[799]: pam_unix(su:auth): auth could not identify password for [root]
Jun 15 23:08:39 Zoneminder su[799]: FAILED SU (to root) http on none
Jun 15 23:08:42 Zoneminder zmpkg.pl[791]: Password: su: Authentication information cannot be recovered
Jun 15 23:08:42 Zoneminder su[800]: pam_unix(su:auth): auth could not identify password for [root]
Jun 15 23:08:42 Zoneminder su[800]: FAILED SU (to root) http on none
Jun 15 23:08:45 Zoneminder zmpkg.pl[791]: Password: su: Authentication information cannot be recovered
Jun 15 23:08:45 Zoneminder zmpkg[791]: ERR [Unable to find valid 'su' syntax]
Jun 15 23:08:45 Zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jun 15 23:08:45 Zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and security system.
-- Subject: Unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zoneminder.service has failed.
--
-- The result is failed.
Jun 15 23:08:45 Zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Jun 15 23:08:45 Zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Code: Select all
# ZoneMinder systemd unit file for Arch Linux
[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysqld.service httpd.service
Requires=mysqld.service httpd.service
[Service]
User=http
Type=forking
ExecStart=/usr/local/bin/zmpkg.pl start
ExecReload=/usr/local/bin/zmpkg.pl restart
ExecStop=/usr/local/bin/zmpkg.pl stop
PIDFile="/tmp/zm.pid"
[Install]
WantedBy=multi-user.target
I am not sure why the above su / sudo errors are coming up? I enabled debug logging too in the web UI:
but all I get is
Code: Select all
06/15/16 23:18:35.146016 web_php[380].DBG [LogOpts: level=DBG/DBG, screen=OFF, database=INF, logfile=DBG->/var/log/zoneminder/zm_debug.log.380, weblog=INF, syslog=INF] at /usr/local/share/zoneminder/www/includes/logger.php line 168
Would anyone be able to help figuring out the cause of the error messages in "journalctl"???
Of course I have the "http" user and it is allowed to run sudo too; all the correct dependencies should be in too as I previously had the AUR package installed before attempting a complete compile.