Operating System & Version
centos 7.8
cPanel & WHM Version
88.0.6

JMGarcía

Member
Oct 11, 2016
23
3
53
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 II
Staff member
Nov 14, 2017
13,266
1,301
363
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.