1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Changing Default paths in Plesk migrating domains / servers

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

  1. meatplow

    meatplow Guest


    I am migrating from a Fedora box without Plesk to a Fedora box with Plesk Reloaded 7.5x.

    On my current box, all of my web material (domains) reside inside /raid/www/domainname . Plesk apparently has a default path that doesn't seem to be changeable. I have many domains, and there are plenty of my clients that have the HARD CODED PATH of /raid/www in their codebase.

    I can't ask everybody to rewrite all the code, so I'm trying to find a way to change Plesk's path for the web/domains !

    I would really, REALLY appreciate any help you can give in find a way to change Plesk's default to /raid/www.

    Thanks in advance.

  2. jamesyeeoc

    jamesyeeoc Guest

    Have you tried creating a symbolic directory link?

    mkdir /raid
    cd /raid
    ln -sd /home/httpd/vhosts/domain.com www

    This will redirect requests for /raid/www/ to /home/httpd/vhosts/domain.com

    Keep in mind the structure under the domain.com directory in Plesk may not be the same as on your previous server.

    The default docroot is:

    so you may need to adjust the above command to include either ~/httpdocs or ~/httpsdocs according to your need for SSL or not
  3. meatplow

    meatplow Guest

    Thanks for the reply.

    I had thought of symlinks, but I was concerned about any potential perfomance issues.

    Looking at the DOCS for plesk, it appears that all I have to do to customize the paths 'inside' the domain is to create a sample set of folders. Then I can .tgz or .zip it and can upload/install it to the config in plesk using the embedded plesk utils.

    Since this is thought out, (the paths inside the domains) it would make sense to me that I could customize the MASTER PATH as well.

    Of course, what I think is common sense isn't always.... :|

    Here is the link for the DOCS that handle the paths INSIDE the domains.

    "Managing Virtual Host Skeleton" -


    Any help would be appreciated.
    And as always....

    Thanks in advance.

  4. jamesyeeoc

    jamesyeeoc Guest

    My understanding from your original post was that you needed to change the default path of the domain docroot from the default of /home/httpd/vhosts/domain.com/httpdocs to /raid/www/

    Have I misunderstood?

    Skeleton files allow you to predefine a structure and files which will reside in the normal /home/httpd/vhosts/domain.com/httpdocs root. I do not believe this would achieve a goal of substituting /raid/www/ as the domain's docroot.
  5. meatplow

    meatplow Guest

    You are correct.

    My orig post was about getting /raid/www/domain in use instead of /home/httpd/vhosts/domain

    I was using the skeleton as an example. Perhaps the /home/httpd/vhosts/ is hard coded into plesk. I'm looking into other alternatives other than symlinks. I'm hoping that it is a variable/'module' that can be easily swapped out.

    Any other ideas or comments ?

    Thanks again.

  6. dm__@

    dm__@ Guest

    No, it can be changed. Have a look at /etc/psa/psa.conf (HTTPD_VHOSTS_D).
  7. jamesyeeoc

    jamesyeeoc Guest

    Ah, yes, now I remember that file...!
  8. meatplow

    meatplow Guest

    Does anybody know if this is a FULLY SUPPORTED variable withing plesk.

    Do you know if the Plesk employees/admins watch the threads ?

    If they do, I'd like their official comments. >

    BTW thanks for your help.

  9. jamesyeeoc

    jamesyeeoc Guest

    The contents of the psa.conf file is fully supported by Plesk, they are the ones who create it upon installing the Plesk software.

    The variables defined in this file are used throughout their other modules.

    Plesk's official stance is that these forums are for self-help, not officially monitored by their staff. Although occasionally a staff member has been known to show up and make an occasional post.