What is the path to Perl and the public_html folder?

Avatar
  • Answered
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.
Avatar
Tim S.
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