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.

Feb 172009

Disable sending PHP version information by Apache/mod_php


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

 Leave a Reply



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>