- Plesk for Linux
- Plesk for Windows
A domain is missing in Plesk.There are no any backups of the server or databases.The
directory of the domain with all its content exists on the file system.
Database inconsistency or the domain was created outside of Plesk.
Copy the website directory to another location on the server:
# cp -pR /var/www/vhosts/example.com/ /root
Manually create the domain with the same name under Plesk > Domains > Add Domain;
Copy the directory from the Step 1 to
# yes | cp -r /root/example.com /var/www/vhosts/
The first word is required to allow overwriting.
Repair permissions of the
vhostsdirectory using the following command:
# plesk bin repair --restore-vhosts-permissions
- Backup the domain content on the file system;
- Create a new domain with the same name under Plesk > Domains > Add Domain;
- Restore the saved content into the new domain directory;
- Restore domain permissions using the following command:
C:\> "%plesk_cli%\repair.exe" --repair-webspace-security -webspace-name example.com