zmpkg.pl not work!

Support and queries relating to all previous versions of ZoneMinder
Locked
jackal207
Posts: 9
Joined: Mon Apr 12, 2004 5:07 pm

zmpkg.pl not work!

Post by jackal207 »

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
renaat
Posts: 1
Joined: Fri Jul 16, 2004 4:20 pm

Post by renaat »

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
Locked