Home  >  Q&A  >  body text

Hello! I would like to ask why phpinfo in the root directory is always automatically generated?

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?

phpcn_u45253phpcn_u452532463 days ago955

reply all(3)I'll reply

  • 寻觅 beyond

    寻觅 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;

    reply
    0
  • Day

    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.

    reply
    0
  • Cancelreply