Knowledgebase: PHP / Programming
How do I set expose_php to Off?
Posted by Tony B., Last modified by Brian F. on 27 August 2020 09:17 AM

The expose_php setting reveals that PHP is installed on the server, which includes the PHP version within the HTTP header (e.g., X-Powered-By: PHP/7.3.13). The default PHP value is for this setting to be on and by default we use all reasonable PHP default settings for maximum compatibility. You can however set expose_php to off by doing the following:

  1. Login to your cPanel for your account.

  2. Use the top search to locate the "Select PHP Version" in your cPanel:

  3. Once on this page you'll select the "Options" menuĀ button which will bring you to the majority of the PHP settings we allow you to override

  4. On the expose_php setting change it from being checked to unchecked and this will turn set expose_php to off
(4 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).