Opened 3 years ago
Closed 2 years ago
#15463 closed defect (bug) (duplicate)
Wordpress creates upgrade directory with 644 permissions instead of 755
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | 3.0.1 |
| Severity: | major | Keywords: | file permissions, wp-content/upgrade, directory, error installing plugins |
| Cc: |
Description
Im not an expert in english lenguage, but my hosting service (hostgator) recommend me to send to you this bug that found on wordpress:
In my wp installation 3.0.1 when i try to install or upgrade any plugin send me an error that wordpress cant create the directory wp-content/upgrade
"Wordpress is creating the wp-content/upgrade directory with 644 permissions instead of 755. I didn't find any documentation of this being an issue but I have added the below to your wp-config.php file and this is working now. You can file a bug report with wordpress under http://core.trac.wordpress.org/.
[root@hosting123 /home/user/public_html]# cat wp-config.php |grep FS
define('FS_CHMOD_FILE',0644);
define('FS_CHMOD_DIR',0755);
Also this bug its reported on support forum with out any really solution:
http://wordpress.org/support/topic/30-upgrade-bug-ftps/page/2
Thank you

The defaults for these constants is exactly as they have been set, unless something sets them elsewhere
http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/file.php#L841
841 // Set the permission constants if not already set. 842 if ( ! defined('FS_CHMOD_DIR') ) 843 define('FS_CHMOD_DIR', 0755 ); 844 if ( ! defined('FS_CHMOD_FILE') ) 845 define('FS_CHMOD_FILE', 0644 );Adding those 2 rules to the wp-config.php alone will not achieve anything, unless a plugin is overriding it with incompatible settings.