InMotion Hosting Support Center

What is the path to Perl and the public_html folder?

Category: How To

griffin
Asked:
2012-03-31 8:33 pm EST

Hits: 1,986
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
#!/usr/bin/perl
for my path to perl
and
/var/www/vhosts/domain.com/httpdocs/
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.

OTHER ANSWERS

0

Tim S.
Staff
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:

/usr/bin/perl
/usr/bin/perl-bin
/usr/bin/perl5.8.8
/usr/bin/perlbug
/usr/bin/perlcc
/usr/bin/perldoc
/usr/bin/perlivp



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

#!/usr/local/bin/perl



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:

/home/username



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

Social Media Login

   
Social Login Joomla

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!