Wordpress: How To Allow httpd to write to /usr/share/wordpress/wp-content/uploads

Robert L Cochran cochranb at speakeasy.net
Sat Sep 12 02:21:47 UTC 2009


On 09/10/2009 04:06 AM, Dominick Grift wrote:
> On Wed, Sep 09, 2009 at 10:53:58PM -0400, Robert L Cochran wrote:
>    
>> On 09/09/2009 10:37 PM, Robert L Cochran wrote:
>>      
>>> I installed Wordpress 2.8.3 on Fedora 11 and attempted to upload a
>>> photo to the directory
>>> /usr/share/wordpress/wp-content/uploads/2009/09/, but failed even
>>> though my Wordpress "author" role permits file uploads. Wordpress uses
>>> php for scripting. I suspected that I had set file permissions
>>> incorrectly. Here are the permissions on /usr:
>>>        
> see if this works:
>
> chcon -R -t httpd_sys_content_rw_t /usr/share/wordpress/wp-content/uploads/
>    


Dominick, it does, and I want to thank you for your help. You and Dan 
Walsh very kindly pointed out the solution to me. I can now upload 
images to the Fedora version of Wordpress.

I've filed a bug on this:

https://bugzilla.redhat.com/show_bug.cgi?id=522897



Thanks

Bob Cochran





More information about the fedora-selinux-list mailing list