FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


CGI Question...





krazycapital
Why wont my perl script work? Is the path "#!/user/bin/perl -wT"? I've tried chomding the file, I have it in cgi-bin. File is at http://zach.frih.net/cgi-bin/test.cgi. Thanks!
PS: The 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@zach.frih.net 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.

And the server error log:
Error: document not found
Bondings
You normally don't need to put it in the cgi-bin folder. Most likely something is wrong with the permissions.
krazycapital
Okay. I moved it...
Forbidden
You don't have permission to access /test.cgi on this server.

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

Yes, I've chmoded it to 755... why isn't working?
ADDS: New location is http://zach.frih.net/test.cgi

EDIT: Nevermind. Back to internal server error...
Bondings
You need to have a content type header for your script in order for it to work. It also needs to be chmod to 755.

Code:
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "Hello World!\n";


http://zach.frih.net/cgi-bin/test.cgi
krazycapital
I had it like that earlier, but it didn't work... weird. Thanks Bondings!
Related topics
Sorry if this is a nooby question but can you install cgi...
Does frihost still support Python for CGI programming
the 9/11 truth
Python, CGI and CSS
PHP and CGI
I Have a question . Is it the server support Chinese?
Question before requesting free hosting
question abt posts/mth
Kinda dumb question regarding DNS
about cgi setup
A question
UT2004 U like the game? Do u have any question post here.
Where is the Mail cgi located?
Question about DNS!
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.