FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[Solved] Perl scripts

 


silverdown
I searched and tried some of the help topics people already made and none of them can solve me problem.

I uploaded the files exactly stated in the readme file.

If you wanna check out the readme file

( Link removed by silverdown )

I keep getting the " Internal Server Error " error. I have no idea why.

suppose to be the admin login, but it dont seem to work
(Link removed by silverdown )


Last edited by silverdown on Fri Nov 02, 2007 4:38 am; edited 2 times in total
dayveday
Hi

It could be a lot of things that are wrong with it. Unfortunately you can't get access to the Apache error logs, which would tell you for sure. If the script is written by someone else, lets assume that the script itself is OK (that is, there are no syntax errors in the script and it outputs the right HTTP headers)

Three probable causes are:

  • The file is not in the cgi-bin directory. To run Perl scripts in other directories you need to setup Apache with a .htaccess file to allow it - so try running it in cgi-bin first.
  • The shebang (#!...) line at the top of the script is wrong. It should be "#!/usr/bin/perl -w" (at least on server 2). If that fails "#!/usr/bin/env perl" should work on all systems.
  • You didn't set the permissions properly. Make sure that the scripts have the permissions listed in the readme file


Hope this helps. If all else fails... panic! Or, post the actual source so we can see what could be going wrong.
silverdown
Hey thanks, you helped me fix it I changed the top to

Code:
 #!/usr/bin/perl -w


and it worked. It was set on

Code:
 #!/bin/perl


Very Happy Thanks again !
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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