• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Unix Question: Can you create a soft link to your httpdocs folder?

C

Clark

Guest
Just upgraded to a new server and I'm using Plesk for the first time. Trying to learn the ropes.

On my old machine, the path to my docment root was very short and simple. /home/mysitename/www

On the new one, with Plesk, the path is more like /home/httpd/vhosts/mywholedomainname/

So, if there is a way, I would like to create a soft link alias to point to this directory. It would be much easier to type and I think I might not need to edit a lot of lines in a lot of files if it can be done.

ln -s /home/httpd/vhosts/mywhoedomainname/httpdocs/ /home/mydomain/www/ does not seem to want to work.
 
Check the owners of the folders and the permissions on them. You prolly need to be root to make the softlinks too
 
Try it without the slashes at the end, i.e.:

ln -s /home/httpd/vhosts/mywhoedomainname/httpdocs /home/mydomain/www
 
This I was able to figure out.

I logged in as root in SSH and made sure I was in my root directory with cd /.

I then used ln -s /home/mysite /home/httpd/vhosts/mydomain.com/httpdocs

Now I have a shortened path that is very useful in navigating to from the shell and for using inside of files.
 
Back
Top