Uploading files to wordpress and SELinux problems
If you use Fedora and Wordpress and you get this error while trying to upload an image to your post:
The uploaded file could not be moved to /usr/share/wordpress/wp-content
All you need to do is labeling your uploads directory with the httpd_sys_content_t type:
[root@nyarlathotep wp-content]# pwd /usr/share/wordpress/wp-content
[root@nyarlathotep wp-content]# chcon -t httpd_sys_content_t uploads/ -R
I hope this is useful for somebody else.