Security setting method of server
Server security is a topic that webmasters pay close attention to, because website security is related to the fluctuation of website ranking optimization, corporate brand image and the transmission of wrong messages, which shows the wrong website browsing pages to browsing users. So ileowu today on the WEB server security settings, so as to improve server security, effectively protect our site, protect our corporate network image, hope that the method of knowing the day will be helpful to webmasters!
Server security settings
The first thing we deal with is to hide the error message in the server security settings, so that the error code generated by the user will not be displayed under browsing, which is not over. We also need to record the error message in the error log to facilitate the administrator to consult. Set error_reporting (0) in PHP to hide all errors.
Server secure Port Settin
1. Disable infrequently used ports, for example: 22, 139, 21
two。 Open the necessary Web ports 80,443.
3. Disable root Telnet port 22, or change the default port 22
4.ssh, mysql, redis, etc., do not use default ports 22, 3306, 6379, and so on.
Server mysql database security settings
1. Disable root user mysql remote login to the database
two。 Regular backups of the mysql database to restore the database.
3. Each site sets up a separate database user to prevent database confusion and irregularity.
4. Assign select, update, delete and insert permissions to mysql accounts
5. Regular backup of database cloud storage is a good choice.