1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'Plesk for Linux - 8.x and Older' started by Clark, Jul 22, 2005.

  1. Clark

    Clark Guest

    0
     
    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.
     
  2. Skade

    Skade Guest

    0
     
    Check the owners of the folders and the permissions on them. You prolly need to be root to make the softlinks too
     
  3. Cranky

    Cranky Guest

    0
     
    Try it without the slashes at the end, i.e.:

    ln -s /home/httpd/vhosts/mywhoedomainname/httpdocs /home/mydomain/www
     
  4. Clark

    Clark Guest

    0
     
    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.
     
Loading...