SELinux を OFF にする

場合よって SELinux を OFF

Display current status

getenforce
enforcing or Perissive or Disabled

Change status

setenforce Enforcing or Permissive

Permanentive settig

vi /etc/selinux/config

#SELINUX=enforcing
SELINUX=disabled
sudo reboot

Confirm

ls -lZ /var/www
drwxr-xr-x root root     cgi-bin
drwxr-xr-x  501 games    html
drwxr-xr-x root apache   phpMyAdmin

おっさんWEBエンジニア奮闘記©2007 WEBDIMENSION