I have joined X10 mostly for the purpose of experimenting with CGI perl and php.
So far all looks wonderful. 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 go.cgi and is the simplest hello world and runs anywhere else. I have use the first SheBang 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 have looked for some way you may have to unlock the cgi-bin ect. I cant find anywhere.
The file is permission 755
------------------------------------------------------------------------------------------------------------------------------
this is the contents of the file .
-------------------------------
#!/usr/bin/perl
print "Hello World\n";
------------------------------- Simple as Hey.?
This is the http to the file so you may see the browser error.
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.
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
If the script is correct and the SheBang line is correct and the permission 755 is correct what on earth can it be.
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.
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.
So far all looks wonderful. 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 go.cgi and is the simplest hello world and runs anywhere else. I have use the first SheBang 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 have looked for some way you may have to unlock the cgi-bin ect. I cant find anywhere.
The file is permission 755


------------------------------------------------------------------------------------------------------------------------------


this is the contents of the file .
-------------------------------
#!/usr/bin/perl
print "Hello World\n";
------------------------------- Simple as Hey.?
This is the http to the file so you may see the browser error.
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.
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
If the script is correct and the SheBang line is correct and the permission 755 is correct what on earth can it be.
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.
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.