<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi all,<BR><BR>I have successfully configured Apache 2.0.4 with RedHat 7.3 
<BR>and use Python 2.2.3 for cgi scripts. <BR>When I start Apache manually 
through /usr/local/apache/bin/apachectl startssl, <BR>I can execute the cgi 
scripts without any problem from the <BR>browser. This works fine. <BR><BR>When 
I put the Apache start line in /etc/rc.local file so that Apache starts 
automatically at boot time, Apache starts without any problem, and I can access 
the HTML pages. <BR>But in case of CGI scripts, I get '500 internal server 
error' <BR>on the browser, and 2 errors in the error log '/usr/bin/env: python: 
No such file or directory, referer: ..' and 'Premature end of script errors'. In 
both cases, apache runs as root. <BR>I dont know much about this, but it seemed 
to be a permission <BR>problem, so confirmed that 755 is set for my cgibin 
directory. /usr/local/bin/python also has 755 permissions. <BR>This has not 
helped. Its not finding python, but I dont know <BR>how to fix it. At this 
point, if I stop Apache and restart it manually, <BR>everything again works 
fine. <BR><BR>Any ideas? Any help would be highly appreciated. <BR><BR>Rgds 
<BR>Greeshma</DIV></BODY></HTML>