How do I set expose_php to Off? Print

  • 0

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

Was this answer helpful?

« Back

Ready to get started? Build your site from
$2.24/mo
GET STARTED NOW