|
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? Thanks Marco |
|
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. You should start an ssh shell and verify that you can run those commands successfully and if not edit your .bashrc file accordingly. 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. actually I can run them by console, I'm not able to run them only via php, is there any different configuration I'm supposed to do? otherwise I will open the ticket thanks |