L
L
lacoste132015-05-16 19:08:46
Access rights
lacoste13, 2015-05-16 19:08:46

Unable to update wordpress and plugins, what should I do?

Tell me please. There is a site on WP, installed it, uploaded plugins and content. At the beginning, everything was as it should, but at some point, when it was necessary to update WP itself and plugins, it began to be written during the update:

Warning: copy(/home/site/domains/sitename.ru/public_html/wp-admin/includes/update-core.php): failed to open stream: Permission denied in /home/site/domains/site.ru/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 231

Обновление не может быть установлено, потому что нам не удастся скопировать некоторые файлы. Обычно это связано с неверными правами на файлы.: wp-admin/includes/update-core.php

We set permissions to 777 for these files, but when you try to update again, a similar message appears with other files. You can’t put 777 on everything.
Googled, they write that this could be because all the files were originally uploaded under the root, and now WP is trying to update under a different user. But how is this possible if initially there was only one single user ..?
How can this be resolved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-05-17
@lacoste13

Root server, change the owner of files and directories on the server

V
Vitalii Bryl, 2019-08-06
@shuffler_agr0s

Another possible reason is due to the installed similarity of All In One WP Security plugins.
After disabling the All In One WP Security plugin, the update of other plugins reproduced successfully for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question