最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

permissions - Upgrading problem

programmeradmin1浏览0评论

I am using a CentOs server that managed with Plesk panel. All domains have different users. I have 2 different installation of WordPress. One is installed from FTP and the other one is installed from Plesk.

WP installed from FTP cannot be updated from admin panel of WP. The error is;

Downloading update from .4.2-no-content.zip…

Unpacking the update…

Could not copy files.

Installation Failed

WP installed from Plesk can be updated successfully from admin panel of WP. So I check the permissions and file ownership and did the same as WP installed from Plesk. But it doesn't fix the issue.

Any suggestion?

PS: I know how to update from FTP. PS2: I won't disable 'define('FS_METHOD', 'direct');'.

I am using a CentOs server that managed with Plesk panel. All domains have different users. I have 2 different installation of WordPress. One is installed from FTP and the other one is installed from Plesk.

WP installed from FTP cannot be updated from admin panel of WP. The error is;

Downloading update from http://wordpress/wordpress-3.4.2-no-content.zip…

Unpacking the update…

Could not copy files.

Installation Failed

WP installed from Plesk can be updated successfully from admin panel of WP. So I check the permissions and file ownership and did the same as WP installed from Plesk. But it doesn't fix the issue.

Any suggestion?

PS: I know how to update from FTP. PS2: I won't disable 'define('FS_METHOD', 'direct');'.

Share Improve this question edited May 26, 2013 at 4:04 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Sep 21, 2012 at 22:01 borayerisborayeris 1481 silver badge9 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 0

Just because you have write access from the ftp user doesn't mean that the user Apache/PHP is running in has write access.

I'd advise you upgrade manually, or check your write permissions and ownership for whichever user Apache is running as on those files.

I fixed the problem by changing file ownership to apache:apache

Try to run these commands (Commands are for both Dashboard and ftp)

sudo usermod -aG www-data $USER

sudo chown -R www-data:www-data /var/www

sudo chmod -R 774 /var/www

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论