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 at 2017-12-28T21:45:05+01:00 Last modified on 2017-12-28T21:45:05+01:00
Note: See TracWiki for help on using the wiki.