Configuring SELinux for WordPress Uploads

These two commands should help you fix your uploads folder for WordPress

semanage fcontext -a -t  httpd_sys_rw_content_t "/webapps/wp-content/uploads(/.*)?"
restorecon -Rv /webapps

Here /webapps contains your WordPress files. Hope it helps!

comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.