HostOnNet Blog

Disable the php information on server for client

Looking for Linux Server Admin or WordPress Expert? We can help.

To disable the php information, open a servers php.ini file and make the following changes.

Change from

expose_php = On


expose_php = Off

It will prevent hacker to easily see that you have PHP installed on the system and what version you are running.

You can use below command to find the path to the php.ini file:

php -i | grep php.ini 

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.
Posted in PHP

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.