• 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.

Issue Swap two domain content

jehutyy

New Pleskian
Hi everyone,
I'm fairly new to plesk and I have hard time figuring out things. Here's my situation :

I have two domain with different content that have been configured with plesk. Both have been configured by a coworker that doesn't have much time anymore to work on them. Let's call them testing.com and master.com. One is a production website whereas the other one is an upgraded version of the former. I would like to keep these two distinct domain obviously but just swapping content.

I tried to achieve this by connecting with ssh and trying changing symlink but it appears to break both website. Another approach was to swap both httpdocs in the doc root of each website but it appears to create a mix up between sites.

I have the sense that plesk could permit that directly from admin interface without going into ssh guru stuff but I can't figure it out.
 
Try to do it just with renaming domains.
Domain name in Hosting Settings.
 
I thought about that but can't help but ask myself what would happen if I rename into something that already exist. Will it overwrite or just says "domain already exists" ?
 
No, you need three renaming - one is temporary for avoiding "domain already exists".
 
I just tested the solution we talked about earlier and that doesn't work as expected.
When I try in my browser I get the default parallel page and not the new site I made.
Furthermore I query the new master.com which redirects me to testing.com.

Is there any configuration that I need to touch in order to make it works ?
 
Try to run

# plesk repair web

after domains renaming.
 
Back
Top