<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Apache/Perl question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial"># "/var/www/cgi-bin" should be changed to whatever your ScriptAliased</FONT>

<BR><FONT SIZE=2 FACE="Arial"># CGI directory exists, if you have that configured.</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial"><Directory "/var/www/cgi-bin"></FONT>

<BR><FONT SIZE=2 FACE="Arial">    AllowOverride None</FONT>

<BR><FONT SIZE=2 FACE="Arial">    Options None</FONT>

<BR><FONT SIZE=2 FACE="Arial">    Order allow,deny</FONT>

<BR><FONT SIZE=2 FACE="Arial">    Allow from all</FONT>

<BR><FONT SIZE=2 FACE="Arial"></Directory></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">AddHandler cgi-script .cgi .pl</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">On the options line I've tried ExecCGI, +ExecCGI and All. </FONT>

<BR><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Ronny Serrano</FONT>

<BR><FONT SIZE=2 FACE="Arial">Network Administrator</FONT>
</P>

</BODY>
</HTML>