Last active
November 14, 2018 04:32
-
-
Save yohangdev/7c02b106dcf81352857c4328cdb5e47d to your computer and use it in GitHub Desktop.
SELinux Centos PHP Hell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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