I have a wordpress based website and I installed a plugin that requires opt-png, opt-gif and opt-jpg cli commands to optimize images.
I installed them in my account, but still the <?php var_dump(exec('which opt-gif')) ?> - and the other as well - is reporting an empty string and the plugin is not working.
How do I solve it?
The problem is that the
You can work around it by setting the
Once that's done, PHP should be able to find your utilities and run them.
Hope that helps!
answered Apr 16 '12 at 14:28
Maybe you've installed those binaries in a directory not listed in the enviroment variable PATH, thus which (or the apache server) can't find them.
If you need further assistance, please open a support ticket so we can take a better look in your configuration, as it is a bit difficult to know the exact cause of this issue without access to your account.
answered Apr 14 '12 at 11:00