Home : Products : Others : Fileman :

Products: Others: Fileman: Re: [Andy] no cgi-bin, internal server error: Edit Log

Here is the list of edits for this post
Re: [Andy] no cgi-bin, internal server error
Thanks for your reply Andy, however, the path was already #!/usr/bin/perl

Here's the first line of the install.cgi file:

Code:
#!/usr/bin/perl


Here's the hosting documentation regarding Pearl and cgi paths:

Quote:

By default, you can publish your PERL files using one of the following file paths:
  • /home/content/u/s/e/username/html/file.pl
  • FTP to /file.pl
  • For hosting config 2.0, you can use any directory.

NOTE: You must specify execute permissions on the file before it will work.
If you have a CGI/Perl or Java enabled account, the system path to our Perl interpreter is:
#!/usr/bin/perl
CGI binaries must end in .cgi or .pl and must be in the /cgi directory for you to use. You cannot use /cgi-bin/ with our hosting system.
Example of a Test PERL Script
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "Greetings user.\n";


I have uploaded the .cgi file in ASCII mode, and the DAT file in Binary mode. I've also set the permission of the install.cgi file to 755

I'm fairly proficient in php/html/csss, but this Pearl is a complete unknown to me. Just out of interest, I coped the code for the example given using notepad, called it greeting.cgi, uploaded it to the cgi folder, and got a 500 internal server error when I ran it from the browser. I have no idea what I'm doing. Frown

Last edited by:

Brenty: Aug 24, 2007, 4:20 AM

Edit Log: