RE: 500 internal server error

Status
Not open for further replies.

incahouse

New Member
Messages
3
Reaction score
0
Points
0
Hi I am still getting this error despite having check and recheck my perl script.

In the error log it says file not found : 500.shtml

However the script actally works and creates a html file correctly the way it was intended to.

I have done all the usually checks - ascii mode, chmod 755, I am using CARP and strict and warnings.

Also the script resides in cgi-bin. It reads and writes to a directory off admin in publichtml. It works fine I just cant get rid of this error message.

It passes the perl -wc check on my desktop.

here is the start of the script:-

#!/usr/bin/perl

use CGI;
use CGI::Carp qw(fatalsToBrowser);

use strict;
use warnings;

my (@items, @name, @image, @dump);

In the error log I get

[Sat Feb 13 18:30:31 2010] [error] [client 79.78.1.55] File does not exist: /home/inca/public_html/500.shtml

But the script works it read's and writes from two files and the output - the file it creates is clearly visible in the browser.

The only thing I havent messed with is the .htaccess file should I do something with this?

Thanks,( Maybe I missed something obvious here!)

ps. It just doesnt look pretty might have to just use I redirect but it wont let me get as far as printing html directly,but the read/write works fine.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Make sure you have printed the header....

Code:
print "Content-type: text/html\n\n";

before you start sending any other output back to the browser.

I usually put it right after the "use" s
 
Last edited:
Status
Not open for further replies.
Top