Hi Everyone,
I am using 10.4.4 Plesk (Update #32). By a mistake I've deleted one of my domains (sample.com) with all it's subdomains. In order to restore it I've done the following:
- I've create a new domain with the same domain name at plesk (sample.com)
- I've tried to restore it via domain's Backup Manager (I've got some backups of it). The restoring process haven't passed well - I've got some warnings like "Plesk wasn't able to restore the domain 1%: name "sample.com" is already used in Panel domain ". After that all domain's structure and databases were restored, but some of the data that was in the domain's folder was missing.
- My final step was restoring all missing data from the server backup from my hoster. I've replaced the domain's folder with the one from the backup.
After these manipulations everything worked just fine, until Plesk hasn't overwritten it's configuration. So here is the problem - httpd.include file for the "sample.com" domain contains the wrong domain name. There is another domain name (this domain wasn't influenced by these actions) listed in this file instead of the "sample.com"
Here is one of the wrong strings from httpd.include:
DocumentRoot "/var/www/vhosts/wrong_domain.com/httpdocs
and it should be
DocumentRoot "/var/www/vhosts/sample.com/httpdocs
Same is for all "sample.com" subdomains. I've tried to edit httpd.include manually, and everything works just fine if I'll correct all wrong domain names to the proper ones, but Plesk overwrites this file after any changes. So I always get everything back...
Maybe there is some permanent way to edit this file? Or I've done something wrong?
I'll appreciate any advice from your side (however I'd prefer not to delete this domain one more time).
Thank you in advance!
I am using 10.4.4 Plesk (Update #32). By a mistake I've deleted one of my domains (sample.com) with all it's subdomains. In order to restore it I've done the following:
- I've create a new domain with the same domain name at plesk (sample.com)
- I've tried to restore it via domain's Backup Manager (I've got some backups of it). The restoring process haven't passed well - I've got some warnings like "Plesk wasn't able to restore the domain 1%: name "sample.com" is already used in Panel domain ". After that all domain's structure and databases were restored, but some of the data that was in the domain's folder was missing.
- My final step was restoring all missing data from the server backup from my hoster. I've replaced the domain's folder with the one from the backup.
After these manipulations everything worked just fine, until Plesk hasn't overwritten it's configuration. So here is the problem - httpd.include file for the "sample.com" domain contains the wrong domain name. There is another domain name (this domain wasn't influenced by these actions) listed in this file instead of the "sample.com"
Here is one of the wrong strings from httpd.include:
DocumentRoot "/var/www/vhosts/wrong_domain.com/httpdocs
and it should be
DocumentRoot "/var/www/vhosts/sample.com/httpdocs
Same is for all "sample.com" subdomains. I've tried to edit httpd.include manually, and everything works just fine if I'll correct all wrong domain names to the proper ones, but Plesk overwrites this file after any changes. So I always get everything back...
Maybe there is some permanent way to edit this file? Or I've done something wrong?
I'll appreciate any advice from your side (however I'd prefer not to delete this domain one more time).
Thank you in advance!