• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Changing Default paths in Plesk migrating domains / servers

M

meatplow

Guest
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.
 
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
 
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/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/ch03s46.html



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

Thanks in advance.

Meatplow.
 
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.
 
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.
 
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).
 
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.
 
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.
 
Back
Top