| Disable Selinux |
Security-Enhanced Linux is active by default while installing Linux. This system which is designed to provide more security in Linux operating systems may give problems with the normal settings to the applications use Internet. It is uncommon that a system administrator to change the settings of SELINUX but used to disable it. Security-Enhanced Linux is active by default while installing Linux, and if you dont disable it, you may not access to your apache servers. Open the "config" file with the command below: #vi /etc/selinux/config
Enable edit mode by pressing INSERT or "i": change "SELINUX=enforcing" to "SELINUX=disabled", after that use ESC to leave edit mode and press SHIFT+ZZ to save the file and quit. After that process, SELINUX will be still active till you reboot the machine. To disable immediately, write this command: #setenforce 0
If you disable SELINUX only for access from outside, you can remove httpd check: # setsebool -P httpd_disable_trans 1
# service httpd restart |