<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Apache/Perl question</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ronny,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On my server, my config file uses the following
model:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Alias /website "/var/www/website/html"</FONT></DIV>
<DIV><FONT face=Arial size=2><Directory
"/var/www/website/html"></FONT></DIV>
<DIV><FONT face=Arial size=2> Options Indexes FollowSymLinks
MultiViews ExecCGI</FONT></DIV>
<DIV><FONT face=Arial size=2> AddHandler cgi-script
.pl</FONT></DIV>
<DIV><FONT face=Arial size=2> AllowOverride None</FONT></DIV>
<DIV><FONT face=Arial size=2> Order Allow,Deny</FONT></DIV>
<DIV><FONT face=Arial size=2> Allow from all</FONT></DIV>
<DIV><FONT face=Arial size=2><Directory></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the /var/www/cgi-bin directory entry as you
show it. I don't have a separate AddHandler line as you show it (it is
commented out).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Unless I am missing some other parameter, this
seems to allow me to run various perl scripts from my server. My config file
provides support for more than one web site and the Directory entry shown above
is repeated for any "website" that requires perl.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope this helps,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><BR>Ted Swoyer<BR><A
href="mailto:tswoyer@sworby.net">tswoyer@sworby.net</A></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>SWORBY, LLC<BR>Computer Support, Consulting and Training<BR>for Businesses
and Individuals<BR>(978) 667-8558<BR><A
href="http://www.sworby.net">www.sworby.net</A><BR></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=RSerrano@heartsonfire.com
href="mailto:RSerrano@heartsonfire.com">Ronny Serrano</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=discuss@blu.org
href="mailto:discuss@blu.org">discuss@blu.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 18, 2005 9:41
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Apache/Perl question</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>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 face=Arial size=2>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 face=Arial size=2>ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</FONT>
</P>
<P><FONT face=Arial size=2>#</FONT> <BR><FONT face=Arial size=2>#
"/var/www/cgi-bin" should be changed to whatever your ScriptAliased</FONT>
<BR><FONT face=Arial size=2># CGI directory exists, if you have that
configured.</FONT> <BR><FONT face=Arial size=2>#</FONT> <BR><FONT face=Arial
size=2><Directory "/var/www/cgi-bin"></FONT> <BR><FONT face=Arial
size=2> AllowOverride None</FONT> <BR><FONT face=Arial
size=2> Options None</FONT> <BR><FONT face=Arial
size=2> Order allow,deny</FONT> <BR><FONT face=Arial
size=2> Allow from all</FONT> <BR><FONT face=Arial
size=2></Directory></FONT> </P>
<P><FONT face=Arial size=2>AddHandler cgi-script .cgi .pl</FONT> </P><BR><BR>
<P><FONT face=Arial size=2>On the options line I've tried ExecCGI, +ExecCGI
and All. </FONT><BR><FONT face=Arial size=2>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 face=Arial size=2>Ronny Serrano</FONT> <BR><FONT face=Arial
size=2>Network Administrator</FONT> </P>
<P>
<HR>
<P></P>_______________________________________________<BR>Discuss mailing
list<BR>Discuss@blu.org<BR>http://olduvai.blu.org/mailman/listinfo/discuss<BR></BLOCKQUOTE></BODY></HTML>