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:
- Login to your cPanel for your account.
- Use the top search to locate the "Select PHP Version" in your cPanel:
- 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
- On the expose_php setting change it from being checked to unchecked and this will turn set expose_php to off