Something wrong with cgi-bin folder

Status
Not open for further replies.

thaliagoo

New Member
Messages
14
Reaction score
0
Points
0
I recently upgraded to intermediate PHP and my request was approved 10+ hours ago. However, nothing I place in the cgi-bin folder works, even text documents will get error messages. The text doc will load if I place it anywhere else except for the cgi-bin folder. I have tried with the simple Hello world script and it gives me this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@askapharmd.x10hosting.com 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

For your information, this is what's in hello.cgi:

#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "Hello World! <br><br>";
print "<br><br>\n";
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Can you link directly to the error?
 

thaliagoo

New Member
Messages
14
Reaction score
0
Points
0
Yes, these files are CHMODed and uploaded in ASCII.

I do not have access to the error log, but it's available in the server (I think).
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Hmm, the link you posted is working for me. Did you fix it?
 

DJHolliday

New Member
Messages
38
Reaction score
0
Points
0
you should not put non-executables in cgi-bin.
I don't know the Apache configuration, but the directory could be limited to executables only.
 

thaliagoo

New Member
Messages
14
Reaction score
0
Points
0
Hmm, well none of the other cgi files work. Here is a script I named hello2.cgi. Its content is identical to hello.cgi.

http://www.askthepharmd.com/cgi-bin/hello2.cgi
http://www.askthepharmd.com/cgi-bin/form_mailer.cgi

The form_mailer is a form submission script.

Another thing I noticed that even though my PHP upgrade request was approved yesterday, I get this message: "Your application for PHP v was accepted and your account is pending a PHP version upgrade." and "Intermediate PHP Configuration - Upgrade pending"

If it's pending an upgrade, is my PHP not yet upgraded? I thought it only took about 3 hours after approval to get PHP running. The error I get is a 500 internal server error.
 
Last edited:
Status
Not open for further replies.
Top