What are the permissions set to? Have you chmod'd to 755 (-r-x)? Permission
will be denied unless the script is set to executable.

How can we verify that your content headers are perfect unless you post the
code? You tell us not to worry about the path and ask us to figure out what
could be wrong, but you're not giving us anything to look at except an error
message.

It could be as simple as missing the space in a line like

        print "Content-type:text/html\n\n";  # wrong
        print "Content-type: text/html\n";   # also wrong
        print "content-type: text/html\n\n"; # still wrong
        print "Content type: text/html\n\n"; # no dice here either
        print "Content-type: text/html\n\n"; # correct

Of course, if you're using the CGI or CGI::Simple module, then the headers
can be more easily created and they are more likely to be error-free...

        print $query->header();

        or

        print $query->header(-title=>'foo',
                           -BGCOLOR=>'white');

-----
Scot Robnett
inSite Internet Solutions



-----Original Message-----
From: Nicholas Davey [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Problem with script headers.


Hi.

Okay, I have been over my script about a hundred times, and all my syntax is
perfect. However, when I view my page on the net, I get this:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log.



When I check the error log, I get this back (this is the last three line of
the error log, cause the last 50 entries are all the same):



      failed to open log file
      fopen: Permission denied
      [Fri Jun 13 07:45:57 2003] [error] [client 64.207.81.146] Premature
end of script headers: <path removed for security reasons>/cgi-bin/index.cgi

      Don't worry about the path. All that matters is what could be wrong.
If my syntax in 100% correct, and I return the proper Content-type headers,
what's the deal? Any comments would be great.


www.vadtec.net
[EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to