Admin-Ahead Community

Linux => Server Security & Hardening => Topic started by: Jithin on November 01, 2013, 06:14:51 pm

Title: Disable PHP from displaying header details.
Post by: Jithin on November 01, 2013, 06:14:51 pm
Hi Guys,

I recently posted an article about disabling Apache header? So, how to do the same for PHP? That's easy. Please follow the steps given below.

1) Open your global php.ini file.

2) You can find the directive - expose_php. Disable it as shown below.

expose_php = off

3) Now restart Apache.

That's it. You just disabled PHP header info.