Applicable to:
- Plesk for Linux
Symptoms
-
Site Import fails with the following error:
Unable to migrate the website: failed to execute commands with the web RPC agent.
Possible reasons:
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. -
The reasons from the error message are not applicable
-
The following error is found at Domains > example.com > Logs on a source server:
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'
Cause
Site Import was started with user "root".
Resolution
Use a SSH web user or a FTP user that is assigned to the source domain to import the site using Site Import feature.
Comments
2 comments
any update?
Hello Benjamin!
Thanks for your help on this.
But I have tried everything to make it work. Created an FTP account assigned to domain and root folder of the website. Used SSH access...
- PHP si up and running
- The version is 7.4
- I have done the following to the htaccess:
Change the permission to read only, so WP doesn't overwrite it when I make a change. Because if I delete the .htaccess WP recreate one and if I modify the lines between # BEGIN WordPress it overwrites it.
Changed <IfModule mod_rewrite.c>
RewriteEngine On
TO
<IfModule mod_rewrite.c>
RewriteEngine Off
Here is the full code of my .htaccess:
# BEGIN WordPress
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
# Toute modification des directives situées entre ces marqueurs sera surchargée.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I really don't understand what more to do...
Should I add a php.ini somewhere? Or modify my .htaccess?
Change my php version on plesk (Now on FastCGI with litespeed server)?
Please help. As we really need to have it working to move our websites easily.
Thanks in advance for your help!
Please sign in to leave a comment.