-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php_fpm
possible conflict.
#76
Comments
You can check output of |
@postadelmaga Do you have any input on this? |
|
I am sorry to hear that. Please reopen the issue if you will reconsider and would like to investigate the issue. |
I have the same problem and would like to open this issue. I use image_optim v0.26.0 and all goes well from the shell. From PHP it also works, but it barely optimizes the images and it also doesn't find svgo and pngout when executed from php, although I have installed them and they can be found from the shell (also from the same user as the php user): that's the visible difference in the --info output. PHP 7.1.12, Linux 4.13.0-0.bpo.1-amd64 #1 SMP Debian 4.13.13-1~bpo9+1 (2017-11-22) x86_64 GNU/Linux Edit: Solved! I had to uncomment this in the php-fpm pool config: |
Glad that you quickly found the solution. Binary finding problems are in most cases path related, it may be helpful to show path given in the environment in verbose output for easier debugging, I’ll add an issue for that.
|
I have integrated this tool with a web app. based on php.
I have tested it on my local env, based on
mod_php
and I have no issue but when I deploy the stuff to live serverimage_optim
is not compressing the images.The live server uses
php_fpm
and I suspect this is the reason because of the issue ...Do you have any idea how can I debug it ?
I'm executing
image_optim
using phpexec()
... the strange thing is I got not error, the output show 0 optimization that's it. But If I try to optimize the same image in my local environment the image get reduced.The text was updated successfully, but these errors were encountered: