Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Disable sending PHP version information by Apache/mod_php

Answer:

If you want to disable Apache from sending response header like "X-Powered-By PHP/5.2.12RC4-dev" or similar, you can edit your PHP configuration (php.ini)

Add the following line:

expose_php = Off

Then restart Apache

apachectl -k graceful

  1. Disable X-Powered-By and Server headers in Apache/PHP
  2. How to restart Apache without disconnecting user
  3. Set PHP settings in Apache configuration
  4. Apache restart explained
  5. Limit Apache only listen to IPv4 address

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>