- Plesk for Linux
Site Importing feature started under a root user fails:
PLESK_ERROR: Unable to migrate the website: failed to execute commands with the web RPC agent.
1. PHP is disabled for the source site. Make sure that PHP is enabled and operational on the source website.
2. PHP version is less than 5.2. Upgrade PHP to version >= 5.2 to migrate the website.
3. There are rewrite rules in effect (e.g. mod_rewrite configured with the .htaccess file) making the web RPC agent inaccessible. Temporarily disable the rewrite rules to migrate the website.
Direct SSH connection to the source server under a root user works just fine:
# ssh firstname.lastname@example.org
The following error is found in Domains > example.com > Logs on a source server:
CONFIG_TEXT: AH01071: Got error 'PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0\nUnable to open primary script: /var/www/vhosts/example.com/httpdocs/plesk-migrator-agent-h014yeripgi6xjthrb1bb0kpn8m0ra3z/index.php(Permission denied)\n'
Site Importing does not work for a root user, only for SSH web users or FTP users that are assigned to the source domain. This way, when a plesk-migrator-agent-* file gets created in domain's Document Root, it belongs to a root user, but Plesk GUI on a target server cannot read that file due to lack of permissions.
Use SSH web user or FTP user for a site to import it using Site Importing feature.