web root path - confused with symlinking please help

Discussion in 'General' started by tsmaudio, Jun 28, 2016.

  1. tsmaudio

    tsmaudio Member

    Hi peeps
    I have this scenario which i'm sure has been answered but after much searching i can't find a clear explanation of what i need, so i,m hoping some kind person will instruct me so i can learn something at the same time.

    I have an application that was running on a Plesk hosting environment and now hopefully for testing & further development i would like to install it on ISPConfig 3 server.
    As we know the web root path is different between these panels and the paths are coded in the application so we need a solution to change the web root path, as changing the paths in the application files is not practical. So i understand it's symlinks that need to be used.
    If someone could give me an idiots step by step on how to do this as I have had no luck trying myself for many hours now. :(

    So original web root path in application files is: /var/www/vhosts/mydomain.com/httpdocs/
    And currently IPSConfig 3 web root path is: /var/www/mydomain.com/web/ or also the same /var/www/clients/client1/web12/web (I find this confusing as to which one of these paths to use with ISPconfig, does it not matter?

    Many thanks in advance
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Run as root:
    Code:
    mkdir -p /var/www/vhosts/mydomain.com/
    ln -s ../../clients/client1/web12/web /var/www/vhosts/mydomain.com/httpdocs
    When logged into a shell, /var/www/mydomain.com/ is easier to remember; however /var/www/clients1/web12/web should be used in web apps/config files, as it won't change (eg. if you change your domain name).
     
  3. tsmaudio

    tsmaudio Member

    Thanks Jesse
     

Share This Page