Ask Your Question

Revision history [back]

To make workpress upload files when working with SELinux you need to do this:

chcon -R -t httpd_sys_content_rw_t /var/www/html/your_wordpress_dir/wp-content/uploads/

You should also do this to allow to connect to the db use the network and send emails if you wordpress require it:

sudo setsebool -P httpd_can_network_connect_db 1
sudo setsebool -P httpd_can_network_connect 1
sudo setsebool -P httpd_can_sendmail 1

If you are hosting it on a home folder then there are other steps that need to be done.

Good Luck.