Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wordpress-upload-permissions [2013-12-26 16:23:16] – created shaun.reitanwordpress-upload-permissions [2013-12-26 16:24:04] (current) shaun.reitan
Line 11: Line 11:
 The first line does a stat on the upload directory which includes the mode.  The next line takes the mode (perms) of the upload directory and modifies it.  Last chmod is run on the uploaded file with the newly created permissions. The first line does a stat on the upload directory which includes the mode.  The next line takes the mode (perms) of the upload directory and modifies it.  Last chmod is run on the uploaded file with the newly created permissions.
  
 +
 +===== Running wordpress with suPHP =====
  
 If your running suPHP and try to lock down your uploads directory using 0711 permissions files that are uploaded are going to end up with 0600 perms.  This is a problem when those files are accessed directly using Apache.  The solution is to set your uploads directory permissions to 0755.  Doing this will cause the permissions for uploaded files to become 0644. If your running suPHP and try to lock down your uploads directory using 0711 permissions files that are uploaded are going to end up with 0600 perms.  This is a problem when those files are accessed directly using Apache.  The solution is to set your uploads directory permissions to 0755.  Doing this will cause the permissions for uploaded files to become 0644.