httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "palani saravanan " <>
Subject [users@httpd] Ur attention plz
Date Wed, 09 Apr 2003 06:34:24 GMT
I am new to apache community.I am trying to execute a CGI script 
using apache.I have a HTML file in var/www directory(I am using 
debian Linux).
The output will show u a Button.If i press the button the control 
will pass to the file which i placed in 
usr/lib/cgi-bin directory.
The code of my perl script is
  print"Content-type: text/html\n\n";
  print "<html>\n";
  print "<head><title>Hello World !!!</title></head>\n";
  print "<body>\n";
  print "<h2>Hello World !!!</h2>\n";
  print "</body>\n";
  print "</html>\n";

   Apache shows me a 500 internal server error.The errorlog file 
  2 errors.

    1.Exec format error.execution of /usr/lib/ 

    2.Premature end of script headers.execution of 
/usr/lib/ failed

    Eventhough the second one is answered in FAQ i cud not get 
I guess some configuration changes are needed in Apache's 
configuration file.Plz help me to overcome  the problem.
   Thanks in advance

Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!

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