PHP version for super user is fcgi instead of cli

Solution 1:

@blackhatblade above is most likely coorect. To test this, log in as both your root and non root user and try this command

# which php

$ which php

"which" should tell you the path. If they are different, an unqualified "php" will execute the first one found in each list of directories.

It's also possible that your root user may have a shell "alias" remapping php. to check this, try the command "alias"

Finally, it's possible your php executable is a wrapper of some kind, which checks for root execution environment, and shunts you to the fcgi version. Check that by examining the fully qualified path you found in the first step from "which," and see if it's a shell script doing something sneaky based on who is running it.