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

updates - FS method direct on NGINX

programmeradmin1浏览0评论

WordPress is a great CMS but when it comes to debugging and error reporting it becomes pretty annoying. I've been searching a solution for my problem for quiet a while now. Unfortunately without any success or any clues. At some point you just get stuck and start typing a stackexchange question, like I'm doing now...

The problem

I can't upgrade or update from WordPress, however I'm able to upload media. Of course I want to be able to update plugins, themes and upgrade the core from the WordPress admin panel. Said shortly, I want to be able to use the FS_method direct.

The error

In case of a upgrade it returns:

Could not create directory.: wordpress

In case of a update it returns:

An error occurred while updating Example: Could not create directory. example

My setup

My server uses nginx and I tried chmod everything in the WP install to 775 and I also tried 777. Except the 'example/test' directory (755) and the 'example/index.php' file (644). I've a configuration file similar to this paste. I also tried to change the tmp folder to a local directory with perms set to 777.

The test

Since WordPress says that it's not able to create a directory (permission related). I decided to do a simple permission test, using this code, with this is the result. In this test I use is_writable() to check the permissions, the red file names are not writable.

The file with the script (permtest.php) was located at the wp root location aka doc root. I also tried to put the script in a separate directory (example/index.php is the same script) here is the result for that second test.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论