Tip Details Add a Related Tip

Rate as: Positive Negative

Hide PHP server information

The default configuration of PHP on most servers is setup so that the server will supply information about the PHP version being run. There's no point to broadcasting this information. While letting this be available is not a serious security hole, why tempt fate since it's so easy to turn this off?

You can turn this off by finding your php.ini file (the location will vary, but /etc is a popular place for this to be) and editing it. You're looking for the line that says:

expose_php = On

and you'll want to change the On to Off. Make this change, save the file, and restart your server and it'll no longer make the PHP version information available.
Rating: no ratings, 0 total Votes
Categories: PHP server configuration
Added: on Aug 31, 2009 at 10:34 am
Added By: an anonymous user
Searches: php server information configuration file

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Finding slow MySQL queries

100% positive, 0 comments
– Tip added by dbdude on Jun 24, 2008 at 9:22 pm

Increasing PHP session lifetime

Categories: PHP server Apache
100% positive, 0 comments
– Tip added by an anonymous user on Jan 23, 2009 at 12:04 pm

553 sorry, your envelope sender domain must exist errors

100% positive, 0 comments
– Tip added by an anonymous user on Sep 26, 2008 at 3:35 pm

How to find a good and cheap web hosting?

100% positive, 0 comments
– Tip added by an anonymous user on Mar 24, 2008 at 3:15 am

PHP strftime errors in Smarty

no ratings, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 3:04 pm

Apache/PHP not connecting to MySQL db after Snow Leopard upgrade

100% positive, 1 comment - last added on Oct 19, 2009 at 6:09 pm
– Tip added by an anonymous user on Sep 08, 2009 at 1:24 pm

Changing the port of a Grails project

100% positive, 0 comments
– Tip added by an anonymous user on Nov 04, 2009 at 7:09 am

Customize Thunderbird email folders

100% positive, 0 comments
– Tip added by an anonymous user on Oct 23, 2009 at 7:14 am

Gestures to switch between tabs in Firefox

100% positive, 1 comment - last added on Jul 28, 2009 at 9:55 am
– Tip added by an anonymous user on Jul 09, 2009 at 1:02 pm

How to Repair Event ID 454 in Exchange Server

100% positive, 0 comments
– Tip added by aamani on Mar 25, 2009 at 4:13 am

Error restarting apache on a Mac

Categories: Mac Apache server error
100% positive, 0 comments
– Tip added by an anonymous user on Mar 20, 2009 at 4:57 pm

First PHP Script

no ratings, 0 comments
– Tip added by learnhtmlonline 2 days, 15 hours ago

Keep screen from dimming when watching videos on a Blackberry

no ratings, 0 comments
– Tip added by an anonymous user on Oct 16, 2009 at 12:12 pm

Load balancing apache servers

no ratings, 0 comments
– Tip added by an anonymous user on Sep 29, 2009 at 7:30 am

Delete Records With Effect Using jQuery And PHP

Categories: php jQuery MySQL
no ratings, 0 comments
– Tip added by an anonymous user on Sep 27, 2009 at 7:10 am

Organizing your iPhone applications on home screen

Categories: iPhone configuration
no ratings, 0 comments
– Tip added by an anonymous user on Sep 21, 2009 at 4:38 pm

Turn off data roaming on the Blackberry Tour

no ratings, 0 comments
– Tip added by an anonymous user on Aug 16, 2009 at 8:18 am

Disable Location Aware Browsing in Firefox

no ratings, 0 comments
– Tip added by an anonymous user on Jul 09, 2009 at 9:33 am

Passing Values In The Url With Php

Categories: Php
no ratings, 0 comments
– Tip added by an anonymous user on Apr 27, 2009 at 11:17 am

Passing Values In The Url With Php

Categories: php
no ratings, 0 comments
– Tip added by an anonymous user on Mar 22, 2009 at 8:53 am