Fix WordPress can't update itself or plugins
-
If you’re faced with this horror (usually happens when Ask Apache Protect is installed) there is a fix, which I believe should be included into the new WordPress release.
In wp-admin / admin.php there are these lines:
!defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWUGO & ~ umask())); !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWXUGO & ~ umask()));
Which are ok but S_IRWUGO = 0666 and S_IRWXUGO = 0777 so for each files WordPress sets
rwxrwxrwx
andrw-rw-rw-
for folders which is not correct and leads to problems sometimes.To fix this change those lines to;
!defined('FS_CHMOD_DIR') && define('FS_CHMOD_DIR', (S_IRWXUGO & ~ umask())); !defined('FS_CHMOD_FILE') && define('FS_CHMOD_FILE', (S_IRWUGO & ~ umask()));
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fix WordPress can't update itself or plugins’ is closed to new replies.