zmpkg.pl not work!
zmpkg.pl not work!
hi, i install zoneminder 1.19.4 and i execute zmpkg.pl from the command line to start zoneminder.When i go to index.php the console is stop... i can start the console only from the webpage...is something wrong ??? I have slackware 9.1
I think I know why it doesn't work since I encountered this problem too
Check which web user zoneminder has been configured with. In my case (on a gentoo system) this was user "apache". You can find this by looking into zmpkg.pl and check for ZM_WEB_USER & ZM_WEB_GROUP.
Even when I did : # su - apache -c "/usr/bin/zmpkg.pl start"
it just came back with the prompt straight up, but it didn't start anything.
After a lot of debugging, the solution was simple and I should've known better: the default shell for the apache user was /bin/false (check in /etc/passwd)
I just changed that to /bin/sh (there's no password in /etc/shadow so I'm not really compromising anything.)
Hope this helps, it only makes sense if you configured zoneminder for user authentication of course ...
Regards,
Renaat
Check which web user zoneminder has been configured with. In my case (on a gentoo system) this was user "apache". You can find this by looking into zmpkg.pl and check for ZM_WEB_USER & ZM_WEB_GROUP.
Even when I did : # su - apache -c "/usr/bin/zmpkg.pl start"
it just came back with the prompt straight up, but it didn't start anything.
After a lot of debugging, the solution was simple and I should've known better: the default shell for the apache user was /bin/false (check in /etc/passwd)
I just changed that to /bin/sh (there's no password in /etc/shadow so I'm not really compromising anything.)
Hope this helps, it only makes sense if you configured zoneminder for user authentication of course ...
Regards,
Renaat