httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From timo ochmann <>
Subject [users@httpd] 500 internal server error, Apache/1.3.26
Date Thu, 15 May 2003 01:37:26 GMT
i am encountering an '500 internal server error' under Apache/1.3.26. 
httpd runs as user 'www'. i've included paths, the script, error log 
and httpd.conf entries below. could someone please take a look?
what am i missing here?


path to cgi bin and executable:
drwxr-xr-x  3 root  daemon   512 May 14 07:33 DOMAIN-cgi
-rwxr-xr-x  1 root  bin     268 Oct 28  2002 printenv

content of Apache's sample script 'printenv':
##  printenv -- demo CGI program which just prints its environment

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
     $val = $ENV{$var};
     $val =~ s|\n|\\n|g;
     $val =~ s|"|\\"|g;
     print "${var}=\"${val}\"\n";

'printenv' executes from command line without problems.

error log:
[Wed May 14 08:26:05 2003] [error] (2)No such file or directory: exec of
  /DOMAIN-cgi/printenv failed
[Wed May 14 08:26:05 2003] [error] [client] Premature en
d of script headers: /DOMAIN-cgi/printenv

     DocumentRoot /var/www/www-html/
     ErrorLog /var/www/logs/
     CustomLog /var/www/logs/ common
     ScriptAlias /cgi-bin/ /var/www/DOMAIN-cgi/

OR (this seemed redundant, but i thought i'll give it try):

     DocumentRoot /var/www/www-html/
     ErrorLog /var/www/logs/
     CustomLog /var/www/logs/ common
     ScriptAlias /cgi-bin/ /var/www/DOMAIN-cgi/
     <Directory "/var/www/DOMAIN-cgi">
        AllowOverride None
        Options +ExecCGI
        Order allow,deny
        Allow from all

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message