wiki:WordPress

Selinux

Make sure uploads are writable for apache, without allowing apache to write in regular content locations

semanage fcontext -a -t  httpd_sys_rw_content_t /var/www/html/wp-content/uploads

restorecon -Rv  /var/www/html

setsebool -P httpd_unified 0

To make sure sqlite as backend db works assuming the db resides in that location:

semanage fcontext -a -t  httpd_sys_rw_content_t /var/www/wordpress
restorecon -Rv  /var/www/wordpress

Last modified 6 years ago Last modified on 12/28/17 21:45:05