SELinux has restrictions on Apache and minor episodes-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: Li Yue
The default root directory cannot be changed for APACHE that comes with CentOS4.6, but is not recognized when the VM points to another directory. It is the reason why SELinux is activated. Disable it:
# Vi/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = disabled
# SELINUXTYPE = type of policy in use. Possible values are:
# Targeted-Only targeted network daemons are protected.
# Strict-Full SELinux protection.
SELINUXTYPE = targeted
Set SELINUX = disabled
Restart the machine and find that the SSH connection fails. The system failed to get started because the modification was wrong. And the control terminal does not use signals. The network is disconnected. Even if the system cannot get up, the terminal should have a signal. After logging on, the network configuration is also lost. After you reconfigure the network address, you still cannot connect to it. At the end, a NIC interface is changed. Yes. The interface is broken.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service