- Plesk for Linux
Unable to import a website via Plesk > Domains > example.com > Website Importing:
PLESK_ERROR: Unable to locate the document root directory of the website.
1. The FTP user only has access to a directory inside the document root.
For example, this can happen when migrating the website http://example.com/ if the FTP user only has access to a subdirectory of the website, e.g. http://example.com/blog.
To resolve the issue, specify correct source document root and source website URL in advanced options below.
2. The document root of the website is located more than three levels deep relative to the FTP root directory.
For example, this can happen when migrating the website http://example.com/ if its document root directory is /var/www/vhosts/my/sites/example.com/httpdocs and the FTP user root is in /var/www/.
To resolve the issue, specify correct source document root in advanced options below.
3. There are rewrite rules for the document root (for example, specified by mod_rewrite and the .htaccess file).
To resolve the issue, temporarily disable the rewrite rules.
Incorrect parameters are specified in the Website Import.
Go to Plesk > Domains > example.com > Website Importing and click the Switch to advanced mode link.
Note: change the "example.com" in the path above to the correct website name.
Specify the correct configuration accoridng to the Importing Websites Guide:
The Source domain name has to resolve to the source server.
If the Source document root is specified the Files root has to remain empty.
The Source website URL has to start from http:// or https://.
If the website document root is not default one, specify the full path in the Source website URL field, e.g.:
The URL has to coincide with the path on the file system. Thus, examples above are valid if and only if the paths are the following:
Make sure that the user specified in the Hosting access section is able to connect to the website via FTP or SSH corresponding by using the Username and Password specified at this page.
Here is the example of the correct configuration: