You are not logged in.

#1 2006-04-11 17:21:21

bdptcob
Member
Registered: 2006-02-17
Posts: 34

Cgi issues

I've never dealt with anything cgi related. I'm getting permission denied on cgi scripts. I'm sure it's permissions related. Here is my error_log:

(13)Permission denied: exec of '/usr/share/bigsister/cgi/bswebalarm' failed, referer: http://192.168.0.105/bs/index1.html

And the current permissions for bswebalarm is:

-rwxr-xr-x  1 root root 9135 Jan 22 10:37 /usr/share/bigsister/cgi/bswebalarm

Also, I have this in my httpd.conf:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

Is this user related? If so, which user?

Offline

#2 2006-04-11 17:41:06

dojo
Member
Registered: 2005-11-02
Posts: 96

Re: Cgi issues

The directory in httpd.conf and the directory of the cgi-script are not equal.

Greets

Sunnemer

Offline

#3 2006-04-11 18:13:14

bdptcob
Member
Registered: 2006-02-17
Posts: 34

Re: Cgi issues

Sorry, I also have this at the end of apache's httpd.conf:

Include /etc/bigsister/httpd.conf

which contains this:

ScriptAlias /bigsis/cgi /usr/share/bigsister/cgi
Alias /bigsis /var/lib/bigsister/www

<Directory /var/lib/bigsister/www>
Order allow,deny
Allow from all
Options +FollowSymLinks
</Directory>

<Directory /usr/share/bigsister/cgi>
Order allow,deny
Allow from all
Options -FollowSymLinks +ExecCGI

<IfModule mod_perl.c>
    <FilesMatch ".mpl$">
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    PerlSetEnv PERL5LIB /usr/share/bigsister/bin
    </FilesMatch>
</IfModule>

</Directory>

Offline

#4 2006-04-25 16:43:57

bdptcob
Member
Registered: 2006-02-17
Posts: 34

Re: Cgi issues

Bump.

Offline

Board footer

Powered by FluxBB