[wp-hackers] ACL support

Dion Hulse (dd32) wordpress at dd32.id.au
Thu Feb 18 07:12:52 UTC 2010

Is this Windows or Linux?
If windows, It should work seemlessly.

If apache, The files must be OWNED by the same user that apache is running  
as, NOT have R/W access.
The reason being comes down to File ownership, When PHP creates files,  
they will be owned by apache, and will have the apache group as well.

The check therefor, only checks to see that the owner of new files will  
match that of the current files, to make it easier on users who do not  
have access to apache-created files (They have read access, However,  
cannot delete/modify the files for example).

There are a few ways you can get around that protection.

One way:

Filter the filesystem method: (Force it to use Direct IO calls)
add_filter('fs_method', create_function('', 'return "direct";'));

define FS_CHMOD_FILE and FS_CHMOD_DIR to octal values that you wish for  
the files to be created as, (ie. define(..., 0777); - That 0 is imortant,  
tells PHP its an octal number)
I'm not sure how it'll play with your ACL entries, just have to hope the  
files inherit them too..

...That was all assuming you're refering to the Installers/Upgraders.. and  
not the file upload/etc, You didnt exactly mention exactly what was  

On Thu, 18 Feb 2010 06:34:15 +1100, Elizabeth Buckwalter  
<elizabeth at slatetechpdx.com> wrote:

> On one of my boxes I have ACLs.  This is great as I can have multiple
> developers working on one project while the server has write access.
>  Usually, ACLs are seamless to a user.  However, Wordpress doesn't seem  
> to
> handle this successfully.  I've done through a bit of the code, but  
> cannot
> seem to track down why it fails.  If it is running as the apache user, it
> should have the appropriate read and write settings.  It fails.
> Has anyone run into this problem before?
> Thanks.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Dion Hulse / dd32

  e: contact at dd32.id.au
  msn: msn at d32.id.au
  skype: theonly_dd32
  Web: http://dd32.id.au/

More information about the wp-hackers mailing list