Using wrong cgi-bin directory

Support and queries relating to all previous versions of ZoneMinder
Locked
goatcatcher
Posts: 12
Joined: Sun Apr 02, 2006 1:11 pm
Location: Victoria, Australia

Using wrong cgi-bin directory

Post by goatcatcher »

Hi all,

I've been working on installing Zoneminder on Ubuntu all weekend and I think I'm nearly there, but I can't get a streaming monitor image, although the still in the zone window works.

I think I've found the problem in /var/log/apache2/error.log:

[Sun Apr 02 21:57:39 2006] [error] [client 127.0.0.1] script not found or unable to stat: /usr/lib/cgi-bin/nph-zms, referer: http://localhost/zm/index.php?view=watc ... 0&control=

My cgi-bin directory is /var/www/zm/cgi-bin. I've obviously done something wrong somewhere but can't work out what it is.

I found this thread,

http://www.zoneminder.com/forums/viewto ... nable+stat

but can't work out from it how to set up the symlinks, if that's the answer.

Can anyone point me in the right direction? I've managed to get this far without posting, but now I'm stumped.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The path to install the cgi script is handled through
./configure --with-cgidir=<your cgi directory>
If you set all the options up properly you should be okay.

Other wise just move the file to the correct location or alias the directory in apache.

Regards,
Corey
goatcatcher
Posts: 12
Joined: Sun Apr 02, 2006 1:11 pm
Location: Victoria, Australia

Post by goatcatcher »

Thanks Corey.
cordel wrote:The path to install the cgi script is handled through
./configure --with-cgidir=<your cgi directory>
If you set all the options up properly you should be okay.
I'd have thought so too, but it appears not. My ./configure command is still in my command history and definitely had a --with-cgidir option:

Code: Select all

./configure --with-webdir=/var/www/zm --with-cgidir=/var/www/zm/cgi-bin --with-libarch=lib64 --with-webuser=www-data --with-webgroup=www-data
To make sure I've tried again, but with the same result. Why might this be?
cordel wrote:Other wise just move the file to the correct location
Which file? I assume you mean /usr/lib/cgi-bin as the correct directory? But I'd rather it was all in the same location.
cordel wrote:or alias the directory in apache.
I've tried doing this, but am having no luck; not finding many helpful resources either. Can you run me through it in more detail? What should I add and to which files?

Thanks.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The path you have listed is not the proper cgi path.
You have to set the path you have configured in apache to allow execution of scripts or install the zms scripts to the already configured path ( /var/www/cgi-bin ).

You can find more information in regards to configuring apache here.

Regards,
Corey
Locked