Cannot execute shell_exec function

Nazmul Hasan

Registered
Aug 30, 2015
1
0
1
Bangladesh
cPanel Access Level
Root Administrator
Hello,

I have a linux server where cPanel is installed. I cannot call shell_exec function from PHP in that server. I have another server where cPanel is not installed there i can call shell_exec function.

Can anyone please tell me what is the difference in cPanel server. What changes I need to make to execute that function using PHP.

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
Hello :)

Yes, as mentioned, check to see if it exists under the disable_functions entry in your /usr/local/lib/php.ini file.

Thank you.