The shell_exec function allows PHP scripts to execute commands via the shell, which can be useful for certain tasks but also poses security risks if not managed properly

edit the php.ini file (on cpanel it’s /usr/local/lib/php.ini)

search for the line that says “disable_functions”

remove shell_exec from this line

Save the file, and restart apache.