Opened 14 years ago
Closed 14 years ago
#17625 closed defect (bug) (invalid)
Wordpress can't update itself nor the plugins. Askapache-password-protect
Reported by: | firedev | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.1.3 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
When ask apache is installed Wordpress can't update itself.
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 and rw-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()));
I suggest to include this into the release.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Lovely, A plugin overriding things it shouldn't.
Trac is for reporting bugs in the WordPress core, this is a plugin issue and should be reported via the Support forums for that plugin, like I see you have already done. http://wordpress.org/support/topic/fix-wordpress-cant-update-itself-or-plugins