FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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 )
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 !
Related topics
Ip Banning Using Php
Share your experience on frihost
Where and how can i learn how to hack?
writing COM components in Perl
SimplytheBest Scripts
Perl modules in PHP?
LWP::Simple Perl Module - Admin(s) Please :)
Documentation for Perl scripts on server?
Location of perl??
PERL scripts + directories
What happened to Perl?
HELP needed with basic Email perl script.
Running local perl scripts in open SuSE 10.3
Do you still use PERL?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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