Disable funtions in php.ini editor

Operating System & Version
centos 7.8
cPanel & WHM Version
88.0.6

JMGarcía

Member
Oct 11, 2016
15
1
3
Spain
cPanel Access Level
Root Administrator
Easy question,...

I want disable some funtions in php.ini

What is the right way?

With or without quotes

disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

or

disable_functions = "exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source"

Thanks.
Regards.
JM
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
It'll work without them but as @GOT noted best to always verify changes with phpinfo()

The description for disable_functions only notes the following:
Code:
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.