InMotion Hosting Support Center

What is the path to Perl and the public_html folder?

Category: How To

2012-03-31 8:33 pm EST

Hits: 2,047
I'm moving an existing site and needing to know what is the path to perl and the path to the public_html directory.

For example, perviously I've used
for my path to perl
for my path to public html.

Thank you.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



Tim S.
9,967 Points
2012-04-02 8:07 am EST
Hi griffin,

Thanks for posting your question. I'm sorry you're having trouble finding the path to your public_html and path to perl. I'm more than happy to assist you today. From the commandline (ssh) we ran:

locate /usr/bin/perl

And it displays this:


You can also try this and this would be the way to call it in a perl script:


As for the path to your public_html it's going to vary by the different accounts on the server. You can run this command from the commandline to take you into the public_html folder. From root in SSH, run this command and replace username with the actual username:

cd ~username

From the command line you'll see the path to the public_html folder is:


If you need further assistance please feel free to contact us. Thanks!

Tim S

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!