Skip to content

Instantly share code, notes, and snippets.

@yohangdev
Last active November 14, 2018 04:32
Show Gist options
  • Save yohangdev/7c02b106dcf81352857c4328cdb5e47d to your computer and use it in GitHub Desktop.
Save yohangdev/7c02b106dcf81352857c4328cdb5e47d to your computer and use it in GitHub Desktop.
SELinux Centos PHP Hell
ls -lZ
setsebool -P httpd_enable_homedirs true
chcon -R -t httpd_sys_content_t /var/www/html/
setsebool -P httpd_can_network_connect_db on
chcon -R -t httpd_sys_rw_content_t /dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment