Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nikocraft's avatar

how to turn of phpinfo on freshly deployed forge server?

if server is accessed directly by ip in browser it displays phpinfo, how can this be turned off?

0 likes
2 replies
minkbear's avatar
minkbear
Best Answer
Level 1

just FTP to yours server and delete /default/public/index.php

1 like
ejdelmonico's avatar

Just push your repo to the server or SSH into the server and modify the file in public by deleting the contents after <?php and replace it with echo 'It works!';. Save the file and when you hit the IP, it should say it works instead of the phpinfo.

Please or to participate in this conversation.