Question
Cant Update plugins or theme (wordpress)
Hello,
whenever i try to update any plugin that comes as bundled with my theme i cant update. it says
update failed
cant remove previous/old data
or sometime it says cant delete “plugins folder name”. same this happens when i try to update my theme from envato theme update plugin. my theme is purchased from envato.
but when i try to update any plugin which i downloaded separately, ex. yoast seo, it updates without any problem.
does anyone faced similar issue?
What im using is
Wordpress 4.2.4
Nginx 1.8
PHP 5.5
thanks in advance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
In the solution, user “fatorbinario” and group “www-data” were just examples. If you login via FTP with another username different than the one you gave permissions with those commands that’s the problem.
A better example would be:
*And as I said before, always make a backup.
@fatorXb2
I m using the same user for my site ftp, wordpress and everything else.
@fatorXb2
can you tell me whats the default permission for /var/www/html
Normally is rwxr-x-r-x (755)
thanks @fatorXb2
things happening to me is after giving the following command as u described, i cant upload or change file permission for any folder using my non-root user.
sudo chown -R YOURFTPUSER:www-data /var/www/html
how can i give my non-root user full privilege as root again?
@fatorXb2
thanks a lot.
can you tell me how can i set permission for all folders to 755 and all files to 644 inside directory /var/www/html
i dont want to do that manually each by each.