Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache CGI - Internal Server Error :Revisited

Status
Not open for further replies.

blacksnake

Technical User
Jan 25, 2002
5
AU
Hi All
I to have the internal server error problem

the script will run in /var/
but not in /var/
I have also disabled suEXEC

have included part of httpd.conf
ScriptAlias /cgi-bin/ "/var/
<Directory &quot;/var/ AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

AddHandler .cgi .pl

have checked permissions and set them 777
for both directory and files
have included part of error log

[Sat Jan 26 02:43:44 2002] [error] (2)No such file or directory: exec of /var/ failed
[Sat Jan 26 02:43:44 2002] [error] [client 192.168.1.102] Premature end of script headers: /var/
Apache 1.3.22 On redhat 7.1

Any help would be gladly received as i have been at this problem for weeks

Thanks In Advance
Blacksnake
 
Hi,

Entries in a <Directory> Container should apply to that directory and all its subdirectories. Is there another <Directory> container for that directory or a .htaccess (even though you have 'AllowOverride None' !) that might be causing problems ?

Also, does it work if you add an explicit Directory container for the subdirectory with +ExecCGI ?

<Directory /var/ Options +ExecCGI
</Directory>

Why not just try a minimal 'Hello World' script in that directory to see if its a cgi problem or something like a path issue within the script.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top