Linux off SELinux

Source: Internet
Author: User

Recently in the toss Linux server, configure the environment, an extension of the installation of PHP, obviously compiled successfully, is not loaded, Phpinfo does not display, view error log is display load failure, no rights = =, configuration FTP program will have unexpected problems, have been engaged for a long time, The problem is that it is selinux, so turn it off:

Close:/usr/sbin/setenforce 0

Enable:/usr/sbin/setenforce 1

After the problem is resolved, the next time you configure the server, the first step is to shut down selinux, to avoid a series of trouble behind. To prevent the Linux reboot from causing the settings to be invalid, you need to modify/etc/selinux/config:selinux=disabled.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.