WordPress update failing

2019-05-10 06:10发布

I'm having a problem when trying to update WordPress to the latest version I get the following error:

Download failed.: Destination directory for file streaming does not exist or is not writable. Installation Failed

I'm also having the same problem when uploading images, it fails and gives the following error

has failed to upload due to an error The uploaded file could not be moved to "the website path and then uploads directory"

I have checked the permissions of the folders and the folders themselves are set to 755 & the files inside them set to 644.

Could anyone tell me why it would be doing this?

Where running a plesk server.

Thank You,

Mark

标签: wordpress
2条回答
一纸荒年 Trace。
2楼-- · 2019-05-10 06:35

Are there any more error messages, probably also in the servers log files? Probably the download for the update should be done to /tmp and you are not allowed to store files there? Try setting the constant WP_TEMP_DIR which should change the directory. Put something like this in your wp_config.php:

define('WP_TEMP_DIR', ABSPATH . 'wp-content/');

查看更多
Melony?
3楼-- · 2019-05-10 06:38

The permissions you're using seem reasonable, but they will only work if the FTP user that WordPress is using (set in your wp_config.php file) is the same as the owner of those files/folders.

查看更多
登录 后发表回答