What is my path to Perl?

You can try to find perl on your server using one of the following 3 ways:
  • whereis perl
  • locate perl
  • find / -name "perl" -type f -print
Usually, the most common paths for perl are:
/usr/bin/perl
/usr/local/bin/perl
 
I am very inexperienced and have been with another hosting company for quite a long time. So, I was very familiar with shared hosting and could install any cgi script. I am going to ask what may be a pretty dumb question: Do I have perl on my server? Where do I type "whereisperl" ?

I tried to have the company who developed my cgi script do an auto install for me and it came back stating that they could not install the script and they used about 8 paths to perl.

Please help and thanks!
 
It is most likely residing at /usr/bin/perl.

Give that a try.

The commands to type given by psyxakias assume that you have shell access to your server. If you are on a shared hosting account, this is probably not the case.

Anyway, DirectAdmin usually uses the /usr/bin/perl path.

In your DirectAdmin control panel there is a link called "Show Installed Perl Modules". It does not give you the path, but if Perl is intalled there will be a bunch of modules shown.

If you are not running your own server, then I recommend contacting your hosting company if your path to Perl is nonstandard.

Good luck.
 
Last edited:
Back
Top