SOLVED Disable Functions in PHP configuration EasyApache 4

Karl1

Active Member
Jul 14, 2011
31
2
58
Netherlands
cPanel Access Level
Root Administrator
HI,

CSF tool recommends to go to

"Check php for disable_functions
[/opt/cpanel/ea-php55/root/usr/bin/php]"

and

"You should modify the PHP configuration and disable commonly abused php functions, e.g.:
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open"

I went to /opt/cpanel/ea-php55/root/etc/php.ini and added that but has no effect.

Please help to understand (im on a centos 7 with easyapache 4)

thanks
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You are using EasyApache 4 on your server and there is multiple php.ini and local.ini files manage your system's PHP. Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately.

You have to edit php.ini file through WHM
Login to WHM >> Home >> Software >> MultiPHP INI Editor

Please refer this URL for more information : How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation
 
  • Like
Reactions: linux4me2 and Karl1

Karl1

Active Member
Jul 14, 2011
31
2
58
Netherlands
cPanel Access Level
Root Administrator
Thanks for the explanation!

Does this also means that I can define one version of php for one of the websites and therefore have different settings?


Hello,

You are using EasyApache 4 on your server and there is multiple php.ini and local.ini files manage your system's PHP. Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately.

You have to edit php.ini file through WHM
Login to WHM >> Home >> Software >> MultiPHP INI Editor

Please refer this URL for more information : How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463