Cheat Sheet

Sunday, April 2, 2017

SELinux for HTTPD outside /var/www/,..

Check with:
sudo ls -Z /opt/lampp/

Install semanage
sudo yum install policycoreutils-python

Set label and reset directories/files label
sudo semanage fcontext -a -t httpd_sys_script_exec_t "/opt/lampp/htdocs(/.*)?"
sudo restorecon -rv "/opt/lampp/htdocs"

No comments:

Post a Comment