SOLVED Error applying CSF recommendations for PHP

Karl1

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

On a [ CENTOS 7.3 x86_64 kvm – srv4 WHM 62.0 ] system, CSF recommends to:

Code:
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
when trying to add the line using the MultiPHP INI Editor to the correct php version in cpanel I get :

Code:
API failure: (XID d2pscd) 1 error occurred: Error #1: The php.ini file contains an invalid line: “disable_functions”.
the line I'm adding is as simple as :

Code:
disable_functions = show_source
Any tips?

Many thanks
 

Karl1

Active Member
Jul 14, 2011
31
2
58
Netherlands
cPanel Access Level
Root Administrator
Thanks for the second tip. Will take care of it.

As for the issue of this post, at first I was only adding "show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open" since the start of the line "disable_functions =" was already there.

I followed your advice and now all works like a charm..

Thanks anyway, case solved
 
  • Like
Reactions: Infopro