can't start the services

Support and queries relating to all previous versions of ZoneMinder
Locked
pepijn
Posts: 3
Joined: Sun Sep 21, 2003 11:19 pm

can't start the services

Post by pepijn »

hi,

I finally got everything installed, but cannot start the zoneminder services. Neither from the browser and the command-line.

these are the logs from /var/log/messages:
Sep 22 01:17:35 localhost zmfix[4748]: INF [Resetting permissions on /dev/video1 to 20606]
Sep 22 01:17:35 localhost zmfix[4748]: ERR [Can't chmod /dev/video1 to 20606: Operation not permitted]
Sep 22 01:17:35 localhost zmfix[4748]: INF [Resetting permissions on /dev/video0 to 20606]
Sep 22 01:17:35 localhost zmfix[4748]: ERR [Can't chmod /dev/video0 to 20606: Operation not permitted]
Sep 22 01:17:35 localhost su(pam_unix)[4747]: session closed for user apache
Sep 22 01:17:35 localhost su(pam_unix)[4751]: session opened for user apache by pepijn(uid=0)
Sep 22 01:17:45 localhost su(pam_unix)[4751]: session closed for user apache
Sep 22 01:17:45 localhost su(pam_unix)[4756]: session opened for user apache by pepijn(uid=0)
Sep 22 01:17:56 localhost su(pam_unix)[4756]: session closed for user apache
Sep 22 01:17:56 localhost su(pam_unix)[4780]: session opened for user apache by pepijn(uid=0)
Sep 22 01:18:06 localhost su(pam_unix)[4780]: session closed for user apache
Sep 22 01:18:06 localhost su(pam_unix)[4799]: session opened for user apache by pepijn(uid=0)
Sep 22 01:18:12 localhost su(pam_unix)[4799]: session closed for user apache

and these from /tmp/zmpkg.log:
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
Removing shared memory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmfix'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl status'
Can't open log file: Permission denied at /usr/local/bin/zmdc.pl line 153.
Can't connect: Permission denied at /usr/local/bin/zmdc.pl line 145.

I've been chmod-ding and chown-ing around, which I probally shouldn't. But they're al set to user apache so it shouldn't be a problem when started as root. I'm no guru, so it might be my mistake.

Please help me out on this one. Have been strugling for a few days now to get it installed and running. Looks like a perfect tool, hoping to get it working.

Thanks, Pepijn
pepijn
Posts: 3
Joined: Sun Sep 21, 2003 11:19 pm

UPDATE on problem

Post by pepijn »

Decided to re-install,
Now I see the message "Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /var/www/html/zm_html.php on line 261" in the browser.

Makes any sense?

I'v been struggling so long, I might oversee something simple here.

Greetz, Pepijn
pepijn
Posts: 3
Joined: Sun Sep 21, 2003 11:19 pm

more...

Post by pepijn »

I commented out the lines that gave the error (about the uptime, don't really need it).
But the "safe mode" might be a big thing.
I also get errors after excecuting the perl-scripts, saying " the late for option T" so I removed the "T" in the first lines of every perl-script.

I know I shouldn't do these things as a newbe, but they may not be the reason for not starting i suppose.

Oh, I use the v.0.9.15 on a Mandrake 9.1 distro.
Cams are working in XawTV.

Pepijn
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Re: can't start the services

Post by tech_fixer »

Seems like you're running PHP on Safe Mode, where some features considered "for advanced users" are turned off. See your PHP documentation or the website (www.php.net) fro more information on how to turn the Safe Mode off.

Regards,
Jose Rodriguez
mwarchut
Posts: 1
Joined: Wed Sep 24, 2003 6:16 pm

Re: can't start the services

Post by mwarchut »

I would try deleting the .sock file /tmp If it's there things wont start up.
Locked