Home >Backend Development >PHP Tutorial >When building a Web environment under Linux and turning off iptables and selinux, can it ensure security?
Turn off iptables and selinux when configuring LNMP and samba. In the past, it was to solve the problem. No matter what the reason, turn it off as soon as possible to avoid trouble.
I happened to encounter this problem these days, so I wanted to come back and ask:
1. If you really build a simple lnmp environment production server, will turning them off reduce the security of the server? Does it have to be closed? How best to set them up?
By the way, I have an off-topic question: Is eaccelerator no longer available in php5.6?
Turn off iptables and selinux when configuring LNMP and samba. In the past, it was to solve the problem. No matter what the reason, turn it off as soon as possible to avoid trouble.
I happened to encounter this problem these days, so I wanted to come back and ask:
1. If you really build a simple lnmp environment production server, will turning them off reduce the security of the server? Does it have to be closed? How best to set them up?
By the way, I have an off-topic question: Is eaccelerator no longer available in php5.6?
It is convenient to turn it off, but you need to pay attention to whether all software has vulnerabilities that can be exploited. Simply put, if there is no sensitive information on the server, it is a better choice to turn it off during development and enable and configure it after going online.
PHP now has opcache, the official code caching extension, and other similar extensions are basically dying out.