Perl with CGI, internal server error?

Status
Not open for further replies.

rallan

New Member
Messages
14
Reaction score
0
Points
0
I accidentally deleted my cgi-bin directory, and now I recreated it, and put in this perl script:

#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";

I got an internal server error.

I added in an htaccess file consisting of:

Options +ExecCGI

And I still got the same error. What am I doing wrong?
Edit:
I accidentally deleted my cgi-bin directory, and now I recreated it, and put in this perl script:

#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";

I got an internal server error.

I added in an htaccess file consisting of:

Options +ExecCGI

And I still got the same error. What am I doing wrong?
It was nothing to do with deleting cgi-bin, I made a new subdomain, and tried in its cgi-bin, no luck. Does lotus not support Perl?

Where would the Apache error log be stored? I only see access logs.
 
Last edited:

lhyman

New Member
Messages
198
Reaction score
0
Points
0
Re: Perl

you are supposed to chmod the cgi-bin folder (and contents) to 755 and upload your scripts in ascii mode..

see if that help
 

rallan

New Member
Messages
14
Reaction score
0
Points
0
Re: Perl

you are supposed to chmod the cgi-bin folder (and contents) to 755 and upload your scripts in ascii mode..

see if that help
Thanks :D I'd had binary transfer mode on, and I'd only tried permissions of 0777 and 0665, I don't know which one fixed it though.
 
Status
Not open for further replies.
Top