Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#15463 closed defect (bug) (duplicate)

Wordpress creates upgrade directory with 644 permissions instead of 755

Reported by: cancunforos's profile cancunforos Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.1
Component: Plugins Keywords: file permissions, wp-content/upgrade, directory, error installing plugins
Focuses: 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

Change History (2)

#1 @dd32
13 years ago

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.

#2 @dd32
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Issues with PureFTPd are a known issue which are being investigated, there are a number of other tickets related which fix the root issue.

Note: See TracTickets for help on using tickets.