NameSilo

Installing Perl Script

SpaceshipSpaceship
Watch
Impact
49
I uploaded perl script into directory http://headlinesmalaysia.com/cgi-bin/a.pl
If you click on the url, it shows 500 Internal Server Error.

I contacted the hosting admin, he confirms that my hosting supports perl.
Any idea??? Thanks for the help...:)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Did you check that the path to the Perl interperter in the script (something like "#!/usr/local/bin/perl" on the first line) matches the path to Perl on your server?
 
0
•••
I have checked my script...it is #!/usr/local/bin/perl
 
0
•••
OK ... if you're certain the path to Perl in your script matches the actual path on your server, then ...

Is the first output from your script an http header? (like ... "Content-type: text/html")

Try putting this after the first line of your script (i.e. after the path to the perl interpreter) - it should give you more information about the error:

use CGI::Carp qw(fatalsToBrowser);

Gotta run to do some "real work" - hope this helps!
 
0
•••
enlytend, thanks for the help...PM sent to you.
 
0
•••
Did you also make sure to chmod +x the script so it's executable?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back