/opt/cpanel/ea-php74/root/etc/php.d/ssp.ini

luisfalcon

Member
Feb 25, 2003
11
0
151
It took me several hours to find that this file is disabling PHP functions, I couldn't even do a phpinfo()! What is it and what controls it?

This is its contents:

display_errors = Off
expose_php = Off
enable_dl = Off
disable_functions = show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open,allow_url_fopen,ini_set

Any clues? Thank you!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! This file isn't present in a default cPanel installation, so I can't say for sure what may have created it. Can you run this command to see if it is linked to any particular software package?

Code:
rpm -qf /opt/cpanel/ea-php74/root/etc/php.d/ssp.ini
 

luisfalcon

Member
Feb 25, 2003
11
0
151
"Not owned by any package", well, maybe it was an overzealous hosting company admin, this is a server filled with wordpress sites (cringe)
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Thanks for checking that out. I'm honestly not sure since it doesn't show up in the packages we distribute by default, so I really can't say where it may have come from. It might be a good idea to reach out to the hosting provider to see if that is something they add to their servers.