New Guy with question.

nasaman

New Member
Messages
1
Reaction score
0
Points
0
Hi guys My name is Les Harrison Net known as nasa or in this forum nasaman Because somebody already stole my name.. LOL
I have joined X10 mostly for the purpose of experimenting with CGI perl and php.
So far all looks wonderfull. love the Cpanel.
However I have already ran into a stumbling block. with cgi.
I have FTP`ed a cgi script to the cgi-bin however when I call the script I get a server error.
The script is the simplest hello world and runs anywhere else. I have use the first line
#!/usr/bin/perl as instructed. and yet the simplest script gives error. Even the scripts already placed there by the server do the same. I know it is looking at the script but cant use it. It might be that the cgi-bin is not active by default, do you have to activate it in some way and if so how.
:dunno:
If I can get this cgi-bin working I will be here for some time and will be working on self replicating and paypal and ebay scripts. Any help with this problem would be very much appreciated.

Pleased to meet you all.
Nasa.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
Welcome nasaman. Glad to hear that you like x10. Otherwise, what's the exact error that shows up when you attempt to run the CGI/PL file? That might help out a bit.
 

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
Hello and welcome to x10Hosting. Enjoy your stay with us.
 

BentFX

New Member
Messages
116
Reaction score
0
Points
0
Try going into file manager and looking at the script. I'm fairly sure that it needs the execute bit set to be executed. From the info you've given, it sounds like the most likely issue.
 

nasaman

New Member
Messages
1
Reaction score
0
Points
0
Thanks for the replies.
I have looked for some way to make the file executable I cant find anywhere.
The file is permission 775
this is the contents of the file .
-------------------------------
#!/usr/bin/perl
print "Hello World\n";
-------------------------------
This is the http to the file

http://activated.x10hosting.com/cgi-bin/go.cgi

You can thus see the error I am getting.
It is like the SheBang line is wrong but that is what the server says I even tried #!/usr/local/bin/perl
of course that didnt work either.
I have uploaded cgi scripts many times and I know they are temperamental but this script is so simple it cant be the script, if the SheBang line is correct and the permission 775 is correct what on earth can it be.
I cant find anywhere that you have to activate the cgi-bin or anything.
You have my interest in saying the file may have to be made executable .
But how.
Thanks guys Nasa.
Edit:
By the way guys this is the error log after attempting to execute the file .


[Tue Feb 05 04:31:16 2008] [error] [client 59.100.1.16] File does not exist: /home/les/public_html/500.shtml
[Tue Feb 05 04:31:14 2008] [error] [client 59.100.1.16] File does not exist: /home/les/public_html/500.shtml


Nasa.
Edit:
My mistake above the file permission is actualy 755

Nasa.
 
Last edited:

GamingX

Executive Team
Messages
6,355
Reaction score
3
Points
38
Please post a new thread in the Free Hosting Section. This way your problem will be exposed to more number of users.
 

nasaman

New Member
Messages
1
Reaction score
0
Points
0
OK Thank you guys for the replies.
I finally found the problem.
I had used some oddball notepad editor to edit the files and it was not saving them in ASCI format.
Once I opened the files in a decent editor ( Ultra Edit )
I could see the format was out of whack.
Now that I have the file format correct all is working.

Thank s again.
 
Top