phpinfo will leak some server information, so it can only be deleted. However, I found that every time after setting the port, etc., it will appear again after restarting. How should I cancel this?
寻觅 beyond2017-10-18 11:34:05
This should be a function provided by the software itself, and why won't phpinfo be automatically generated after I change the port (phpinfo.php has been deleted before)?
You can add a line of code to your website homepage file and delete the phpinfo.php file;
Day2017-10-18 11:26:44
Because software users such as setting ports will automatically write a phpinfo file, so that the test server can open the php web page normally. Such settings should not be used frequently. If you feel that the settings are not needed, you can delete them. For more convenience If users want to open phpinfo after setting up, they may think there is a problem with the server.