How exactly did you check that exec was enabled? There are three conditions in which you would get that message. If you are running PHP in safe mode, if exec is in suhosin.executor.func.blacklist or if exec is in disable_functions in php.ini. Are you able to verify that all three of those things are false? Are you able to run exec in other PHP scripts?
Firstly, thanks for such a speedy response.
I created the following PHP Script:
<?php
if(function_exists('exec')) {
echo "exec is enabled";
}
phpinfo();
?>
It shows exec is enabled. You can see at http://socialmediachampionship.org/phpinfo.php.
I have also checked the php.ini like in another thread you suggested and nothing is there. Any thoughts? Where is the suhosin.executor.func.blacklist?
If you search for suhosin.executor.func.blacklist in that phpinfo output you’ll see that exec and shell_exec are blacklisted. I don’t know how your particular server is configured, but it’s most likely in your php.ini.
Oh I see! Where can I edit the suhosin.executor.func.blacklist?
I don’t know how your particular server is configured, but it’s most likely in your php.ini.
YOU BOSS! I saw a setting in my web control panel (ZPANEL) to disable suhosin. I disabled it and it works! Thank you so much for the superb help! 5 stars from me and a donation! Keep it up!
Glad I could help. I don’t know much about suhosin, but depending on your security concerns you might want to figure out how to keep suhosin enabled but just edit the blacklist to remove exec and shell_exec. It provides a lot of other PHP security services that might be useful.