Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

shell_exec empty for rebuild_phpconf but not others, works in CLI



  • Andy Baugh cPanel Staff

    So, if I had to guess, this is just a difference between what PHP INI (or FPM config) is in play in the context of php executed via apache versus on the command line. If the configuration loaded via apache (just make a phpinfo page to check versus phpinfo on the CLI) disallows shell_exec via having it listed in the "disable_functions" parameter, then that would explain why this is happening. If so, you'll either have to inquire with your hosting provider to resolve this (or execute what you are looking to execute alternatively -- perhaps the administrator only banned shell_exec and not proc_open, etc.).

  • JAB Creations

    I discovered that PHP is in "chroot jail" and confirmed it when running:

    stat -c %i /

    Which returned '2'.

    Because the topic is related though also entirely different I started a new thread here:


Please sign in to leave a comment.