Cannot get cgi to work

Status
Not open for further replies.

Frank_UK

New Member
Messages
8
Reaction score
0
Points
0
I am placing my cgi scripts in /public_html/cgi-bin
I have set permissions correctly
However the scripts will not execute; I get the following 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@keane.elementfx.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.


Is /public_html/cgi-bin the correct directory for cgi scripts
Should the script extensions be .pl or .cgi
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
Either should be fine as extensions, common issues are the fact its in PC format not unix - you would need to upload the files in text format not binary.

Other things that can cause this error are incorrect paths to perl.
 

Frank_UK

New Member
Messages
8
Reaction score
0
Points
0
I uploaded the scripts using cPanel
Does this upload in text format?
Path to perl is correct.

I cannot upload using a ftp client as ftp is not working on my account.
ftp client will not connect, seems like a dns error

edit:

I have just checked the server status. dns and ftp are offline:

Server Name Lotus.x10
IP Address 67.228.161.42
Server Uptime 3 days, 13:58
Server Load 33.34
Apache HTTP Online
MySQL Online
Exim Online
cPanel Online
FTP Offline
DNS Offline
Edit:
ftp is now showing as online.
However I cannot connect via ftp
Edit:
I changed my primary domain to: keane.x10hosting.com
ftp is now working
I uploaded cgi scripts via ascii
My scripts are now working
Thanks for your help
 
Last edited:
Status
Not open for further replies.
Top