• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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