• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Cannot upgrade plugins trough wordpress toolkit after migration.

Killengage

New Pleskian
Hello,

I'm struggling to find the problem why the wordpress toolkit will not update plugins/wordpress/themes. I'm getting this error:
  • The WordPress plugins were updated with errors:
    • Installation "Multirotor Photo's": Warning: Could not create directory. {"err_code":0,"err_message":"Updated 0\/1 plugins."}
I recently migrated all domains from my old server to the new server using the plesk migration tool.
The configurations of the servers:

Old server: Ubuntu 12.04, Plesk 12.0.18, AMD Opteron , 8 GB RAM
New server: Ubuntu 14.04 LTS, Plesk 12.0.18, Intel Xeon, 8 GB RAM

I have been searching for log files within my system to identify what directory isn't writable, since its not clear in the fault message. Some help is really appreciated.

Thanks in advance.
 
Hello,

I think your are you getting this issues due to incorrect ownership of your account files. Try to update the correct ownership of all files and try again.
 
Plugins in wordpress are located at: "/var/www/vhosts/YOURDOMAIN.COM/httpdocs/YOURWORDPRESS_ROOT-FOLDER/wp-content/plugins" and should have a standard permission set to 755.
Themes in wordpress are located at "/var/www/vhosts/YOURDOMAIN.COM/httpdocs/YOURWORDPRESS_ROOT-FOLDER/wp-content/themes" and should as well have standard permissions set to 755.

Be aware that some plugins and themes are not configured correctly, because plugin and theme coders are mostly no professionals. Have a look into these folders and correct the different folder permission to the standard.
Your folders and files should be owned by the group psacln and the current systemuser.
 
Thanks for your reply's. Looks like ownership and permissions are the same. I see however 2 directories within /wp-content with ownership www-data:www-data. Its the upgrade and uploads directory. Is this correct ?

Thanks
 
It depends, Killengage.... if you use nginx on your server as well, you might struggle, because the systemuser nginx is not in the www-data - group by default. You can change this, by using the command:

usermod -aG psacln nginx
As I wrote before, the absolut correct permission would be group "psacln" and the current systemuser for that domain.
 
Ok did some testing:

When i change the ownership to sytemuser:psacln for all /wp-content directories i can do the upgrade trough the wordpress toolkit. When i login to the site (wp-admin) and try to install a plugin i get the error message "could not create directory) again. Changing ownership of /upgrade and /plugins back to www-data:www-data fixes this problem, but bringing the problem back in the wordpress toolkit.
 
Ok, changed the /upgrade and /plugins to www-data:psacln ownership. Now its working via the wordpress admin section as well in the Wordpress toolkit. However i think it doesn't make sense to me to use www-data. Thanks for your help !!

EDIT: Now problems returned in Wordpress Toolkit. Looks like wordpress toolkit use system user:psacln ownership and wordpress admin section uses www-data:www-data ownership.
 
Last edited:
Back
Top