FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


im installing a perl script in my website and..





charlo_blade123
im installing a perl script in my website and..

i want to know where's the location of the perl in the server..

as written in this artilce:

Quote:
.....Now, you will need to know where Perl is on your web server. This is because you may need to change the top line in this script. If you are unsure where Perl is, ask your web host or telnet your server and type the which perl command at the prompt:

Telnet>which perl

Usually, Perl is located in /usr/bin/perl or /usr/local/bin/perl directory. When you know where perl is, use that path after the # sign and ! symbol above. So, if you had to change it to /usr/local/bin/perl, then the first line would read:

#!/usr/local/bin/perl
.....



Need response ASAP.. please..
Bondings
Code:
#!/usr/bin/perl

Should be working. Very Happy
IceCreamTruck
Code:
#!/usr/bin/perl


is probably right, but I've also seen both that and...

Code:
#!/usr/local/bin/perl


working on some servers. I'm not sure if the latter is correct, but if at first you don't succeed try try again. This is an error that the server can handle just fine. If it doesn't locate perl at the location it will tell you.

A word to the wise: Investigate what version of perl your scripts require, and compare that version to what is run when you activate
Code:
#!/usr/bin/perl
. I'm sure that somewhere there is a script written that requires an older version of perl to run, at which point you'll have to ask the admin what older versions are or can be installed on your server.
Related topics
CGI/Perl Script to backup a website.
executing a perl script
I have a perl Script.. but i dont know how to use.
Running a Perl script in the background
HELP needed with basic Email perl script.
executing a perl script from within a script
PERL - post data from one script to another (Without LWP)
writing COM components in Perl
'members only' section of website
Show ip adress from perl -script need help
Sending simple emails using PERL - Help required
Problem with perl script
Executing a Perl CGI script
Cpanel Acess... 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-2011 Frihost, forums powered by phpBB.