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,748
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
13,821 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:

<p class="code_block">locate /usr/bin/perl</p>
And it displays this:
<p class="code_block">/usr/bin/perl

You can also try this and this would be the way to call it in a perl script:
<p class="code_block">#!/usr/local/bin/perl</p>

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:
<p class="code_block">cd ~username</p>

From the command line you'll see the path to the public_html folder is:
<p class="code_block">/home/username</p>

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?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

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!