server using cloudlinux, how to turn off expose_php ?

basketmen

Well-Known Member
Sep 9, 2010
128
1
66
For the server using server using cloudlinux, how to turn of expose_php ?

is it still in WHM > Service Configuration > PHP Configuration Editor ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Here's a snippet from the document referenced in my last response that should help answer this question:

Default values, that are shown in PHP-Selector web interface, are taken from '/opt/alt/phpXX/usr/bin/php -i' runtime values, if directive is not there, it will use 'default' value that was set in php.conf . So, if you wish to change default value of any option for "alternative" php version, please modify /opt/alt/phpXX/etc/php.ini files (where XX = 55, 54, 53, etc according to php version).
Thank you.