httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Sewell" <>
Subject Re: [users@httpd] Internal Server Error
Date Sat, 08 May 2004 13:46:55 GMT
I'm having a similar problem. my url is

I am trying to setup a forum.

Here's the page content:
Server error!
The server encountered an internal error and was unable to complete your 
Error message:
Premature end of script headers:
If you think this is a server error, please contact the webmaster
Error 500
Sat 08 May 2004 09:33:18 AM HKT
Apache/2.0.40 (Red Hat Linux)

Right now the permissions are set as 755 when I used chmod for both the 
directory and the individual file.:-/


>From: Marty Landman <>
>Subject: Re: [users@httpd] Internal Server Error
>Date: Sat, 08 May 2004 09:06:07 -0400
>At 01:18 AM 5/9/2004, Muhammad Rizwan Khan wrote:
>>When i tries to run a cgi script on my site, it gives me following error
>>Internal Server Error
>>While the error_log  says:
>>[Sat May  8 11:15:08 2004] [error] [client] Premature end of
>>script headers: /var/sites/
>Muhammad, cgi's must print standard headers first and the error is telling 
>you that never happened, probably because it failed in the compile, or 
>maybe because it wasn't written properly. OTOH it's also showing that the 
>script was found, and started.
>print "Content-type: text/html\n\n";
>is an example of a line in a Perl script running as a cgi to print headers 
>telling Apache that an HTML document follows.
>Here's a simple script
>print "Content-type: text/html\n\n";
>for(sort keys %ENV) { print "ENV{$_} eq $ENV{$_}\n" }
>If this doesn't work the first two things I'd check are
>1. verify the path to Perl on your server
>2. check that if you're transferring from windows to unix (or vice versa) 
>using FTP that the transfer is done in ascii mode
>Marty Landman, Face 2 Interface Inc. 845-679-9387
>Web Installed Formmail:
>FormATable  DB:
>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:

If you fuck me off then standby,

MSN Toolbar provides one-click access to Hotmail from any Web page  FREE 

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