Jump to content
xisto Community
Sign in to follow this  
minimcmonkey

Need Help - Cant Run Cgi On Trap17 Hosting need some help with using CGI on trap17 free hosting

Recommended Posts

Hi.
** note: i did create this topic before, but under a stupid name, so i didnt get replies. Sorry about that :S **

Im new to perl and CGI
could someone tell me how to run CGI on Xisto free hosting.
I have created a programme which look like

print "<p>Hi</p>";

i tried saving it in notepad as "test.cgi"
but it saved as a text document, named "test.cgi"
I tried putting it in the "cgi-bin" area, on the free web hosting ftp.
but when i ran it, it said it couldnt find it.

could someone help me.

Also, how do you use the first line like:
#! usr/bin/perl

Share this post


Link to post
Share on other sites

The first line #!/usr/bin/perl is for you to specify the path to the perl.

As for your cgi file. There are a few things you might want to check up.

1) Do you upload it in ascii format?
2) Did you change the permission to at least 755?
3) You might want to change the script to such

#!/usr/bin/perl
print "Content-type: text/html\n\n";

print "<p>Hello</p>";


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.