Apache/Perl question

Ronny Serrano RSerrano at heartsonfire.com
Thu Aug 18 21:41:21 EDT 2005


Hi all. I'm a little new to linux and apache. I've been able to get by
in most situations using google and linux resources on the net to answer
most questions. Unfortunately this one is starting to get to me and I
could use a lil help.

I have a server that is running linux and apache on it at a hosted site.
A new requirement we have is to run some perl scripts on the box. I've
gone in and modified the httpd.conf file and restarted apache. The
following are the entries that I modified were the following:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

AddHandler cgi-script .cgi .pl



On the options line I've tried ExecCGI, +ExecCGI and All. 
The directory/scriptalias points to the correct directory. I've set the
rights on the script as 755. For some reason I get a Forbidden or a 403
everytime I try to run one of these scripts directly over http. The
scripts are placed in the /var/www/cgi-bin directory. What am I missing?
I'm not using any .htaccess file.. Not that I know of. Should the rights
to the cgi-bin directory be 755 also? Any help would be greatly
appreciated.

Ronny Serrano
Network Administrator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blu.org/pipermail/discuss/attachments/20050818/0e80508f/attachment.html>


More information about the Discuss mailing list