CGI execution apache2
Posted: Sat May 29, 2010 10:45 pm
I think my vhost is all bunged up and I'm not executing the cgi scripts in the zoneminder/cgi-bin directory. Can someone point me in the right direction on this? I've checked permissions, and I've created little test cgi-scripts. The apache2/access_log tells me
and the directory looks like this:
May 27 18:21 nph-zms
-rwxr-xr-x 2 root root 490916 May 27 18:21 zms
[/code]
my vhost looks like this, but I have been messing with it a bit:
Code: Select all
"GET /cgi-bin/first.pl HTTP/1.1" 404 276
Code: Select all
camerahost www # ls -al zoneminder/cgi-bin
total 980
drwxr-xr-x 2 apache apache 4096 May 29 18:30 .
drwxr-xr-x 6 root root 4096 May 29 17:58 ..
-rwxr-xr-x 1 root root 76 M[code]ay 29 18:30 first.pl
-rwxr-xr-x 2 root root 490916
-rwxr-xr-x 2 root root 490916 May 27 18:21 zms
[/code]
my vhost looks like this, but I have been messing with it a bit:
Code: Select all
ScriptAlias /cgi-bin/zms "/var/www/zoneminder/cgi-bin/zms"
ScriptAlias /cgi-bin/nph-zms "/var/www/zoneminder/cgi-bin/nph-zms"
ScriptAlias /cgi-bin/testcgi "/var/www/zoneminder/cgi-bin/testcgi"
Alias /zoneminder "/var/www/zoneminder/htdocs"
<FilesMatch> "\.(cgi|shtml|phtml|php)$"> #the stray '>' after FilesMatch is there only because this forum won't show it correctly without
</FilesMatch>
<Directory>
AllowOverride All
AddHandler cgi-script .cgi
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory>
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>