Perl error.log

Status
Not open for further replies.

kkroo

New Member
Messages
13
Reaction score
0
Points
0
Hi,

None of my perl scripts are working with this host. The perl path is correct and the files and folder are properly chmoded. I made a previous thread regarding this issue, but it was closed unanswered. Can error logging for perl/CGI scripts be enabled?

Thanks
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
While I cant view your file, its exceedingly common for files to go up in binary and so inherit the windows format. You could have reopened your previous post btw.

Im not sure how you could prove to yourself which format its in except copy one to test.txt if you download it and it shows OK in notepad then its in windows format, if it shows kinda on one line with small squares, its unix.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Please link to one of the files where you're getting the 500 error.

-Corey
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
I tried a couple of simple perl files and it would seem I needed to print a content type at the top of the page for it to work.

Give the following code a try:

#!/usr/bin/perl

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

If that works then it would seem to echo my findings that you need to output a content type
 
Status
Not open for further replies.
Top