How do I set expose_php to Off?
The expose_php setting reveals that PHP is installed on the server by including the PHP version in the HTTP header (e.g., X-Powered-By: PHP/7.3.13). This is enabled by default. To disable it:
-
Log in to cPanel for your hosting account.
-
Search for Select PHP Version:

-
Select the Options menu.
-
Find the
expose_phpsetting and uncheck it to turn it off.
For more PHP settings you can adjust, see Using PHP Selector to change your PHP version, modify extensions.