Results 1 to 9 of 9

Thread: Changing Default paths in Plesk migrating domains / servers

  1. #1

    Default Changing Default paths in Plesk migrating domains / servers

    Hey.

    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.

    Greg.
    aka
    Meatplow.



  2. #2
    Tera Poster jamesyeeoc's Avatar
    Join Date
    Nov 2003
    Posts
    2,620

    Default

    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:
    /home/httpd/vhosts/domain.com/httpdocs
    and
    /home/httpd/vhosts/domain.com/httpsdocs

    so you may need to adjust the above command to include either ~/httpdocs or ~/httpsdocs according to your need for SSL or not
    [COLOR=darkblue][size=1]
    [b]I hate upgrading! I'd rather build a new box.[/b] ;)
    Sleep? Who needs sleep? There are only half as many hours in a day as there need to be!
    A bullet sounds the same in any language, so stick a sock in it you cow! - Stewie Griffin[/size]
    Please use [COLOR=red][B]SEARCH[/B][/COLOR] before posting, many times the answer to your question is already posted![/COLOR]
    [COLOR=green][size=2]"We judge ourselves by what we feel capable of doing, while others judge us by what we have already done." -- Henry Wadsworth Longfellow
    Your theory is crazy, but it's not crazy enough to be true. - Niels Bohr
    Microsoft isn't evil, they just make really crappy operating systems. - Linus Torvalds
    They have computers, and they may have other weapons of mass destruction. - Janet Reno[/size][/COLOR]



  3. #3

    Default

    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" -

    http://download1.sw-soft.com/Plesk/P...l/ch03s46.html



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

    Thanks in advance.

    Meatplow.



  4. #4
    Tera Poster jamesyeeoc's Avatar
    Join Date
    Nov 2003
    Posts
    2,620

    Default

    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.
    [COLOR=darkblue][size=1]
    [b]I hate upgrading! I'd rather build a new box.[/b] ;)
    Sleep? Who needs sleep? There are only half as many hours in a day as there need to be!
    A bullet sounds the same in any language, so stick a sock in it you cow! - Stewie Griffin[/size]
    Please use [COLOR=red][B]SEARCH[/B][/COLOR] before posting, many times the answer to your question is already posted![/COLOR]
    [COLOR=green][size=2]"We judge ourselves by what we feel capable of doing, while others judge us by what we have already done." -- Henry Wadsworth Longfellow
    Your theory is crazy, but it's not crazy enough to be true. - Niels Bohr
    Microsoft isn't evil, they just make really crappy operating systems. - Linus Torvalds
    They have computers, and they may have other weapons of mass destruction. - Janet Reno[/size][/COLOR]



  5. #5

    Default

    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.


    Meatplow.



  6. #6
    Parallels Team
    Join Date
    Mar 2005
    Posts
    216

    Default

    Originally posted by meatplow
    Perhaps the /home/httpd/vhosts/ is hard coded into plesk.
    No, it can be changed. Have a look at /etc/psa/psa.conf (HTTPD_VHOSTS_D).



  7. #7
    Tera Poster jamesyeeoc's Avatar
    Join Date
    Nov 2003
    Posts
    2,620

    Default

    Ah, yes, now I remember that file...!
    [COLOR=darkblue][size=1]
    [b]I hate upgrading! I'd rather build a new box.[/b] ;)
    Sleep? Who needs sleep? There are only half as many hours in a day as there need to be!
    A bullet sounds the same in any language, so stick a sock in it you cow! - Stewie Griffin[/size]
    Please use [COLOR=red][B]SEARCH[/B][/COLOR] before posting, many times the answer to your question is already posted![/COLOR]
    [COLOR=green][size=2]"We judge ourselves by what we feel capable of doing, while others judge us by what we have already done." -- Henry Wadsworth Longfellow
    Your theory is crazy, but it's not crazy enough to be true. - Niels Bohr
    Microsoft isn't evil, they just make really crappy operating systems. - Linus Torvalds
    They have computers, and they may have other weapons of mass destruction. - Janet Reno[/size][/COLOR]



  8. #8

    Default

    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.


    Greg.



  9. #9
    Tera Poster jamesyeeoc's Avatar
    Join Date
    Nov 2003
    Posts
    2,620

    Default

    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.
    [COLOR=darkblue][size=1]
    [b]I hate upgrading! I'd rather build a new box.[/b] ;)
    Sleep? Who needs sleep? There are only half as many hours in a day as there need to be!
    A bullet sounds the same in any language, so stick a sock in it you cow! - Stewie Griffin[/size]
    Please use [COLOR=red][B]SEARCH[/B][/COLOR] before posting, many times the answer to your question is already posted![/COLOR]
    [COLOR=green][size=2]"We judge ourselves by what we feel capable of doing, while others judge us by what we have already done." -- Henry Wadsworth Longfellow
    Your theory is crazy, but it's not crazy enough to be true. - Niels Bohr
    Microsoft isn't evil, they just make really crappy operating systems. - Linus Torvalds
    They have computers, and they may have other weapons of mass destruction. - Janet Reno[/size][/COLOR]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •