Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Nothing that I can see, all the checks look good until it comes to verifying the version strings of the tools, where there is no output at all. This tends to indicate that the binaries won’t run on your server. Do you know what operating system it is running? And do you have ssh/shell access to the server?

    Thread Starter tobyhage

    (@tobyhage)

    Thank you for the fast reply.

    Operating system is: Debian

    Yes i have full access to the server.

    Plugin Author nosilver4u

    (@nosilver4u)

    well, that sounds promising.
    From the shell, browse to the wp-content/ewww/ folder and then run these commands to test things out:

    ./jpegtran -v
    ./gifsicle --version
    ./optipng -version

    You’ll have to use ctrl-c to kill the jpegtran test as it will sit there waiting for input (if it actually works).

    Thread Starter tobyhage

    (@tobyhage)

    Independent JPEG Group’s JPEGTRAN, version 9 13-Jan-2013
    LCDF Gifsicle 1.70
    OptiPNG version 0.7.4

    Using libpng version 1.4.12 and zlib version 1.2.7-optipng

    Plugin Author nosilver4u

    (@nosilver4u)

    So they work fine, as I expected on Debian (it’s what my dev box runs). Somehow it seems like something is blocking php from running the executables. Do you have any special security settings or anything non-standard on your php?
    Can you create a php file with these contents, and post the url for me to take a quick look?

    <?php phpinfo(); ?>

    Thread Starter tobyhage

    (@tobyhage)

    Plugin Author nosilver4u

    (@nosilver4u)

    I wonder if it is a permissions thing. Can you check and see who owns those files?
    In the wp-content/ewww/ folder run:

    ls -l

    Thread Starter tobyhage

    (@tobyhage)

    -rwxr-xr-x 1 www-data www-data 928079 Oct 22 19:18 gifsicle
    -rwxr-xr-x 1 www-data www-data 546809 Oct 22 19:18 jpegtran
    -rwxr-xr-x 1 www-data www-data 433664 Oct 22 19:18 jpegtran-custom
    -rwxr-xr-x 1 www-data www-data 797153 Oct 22 19:18 optipng

    Plugin Author nosilver4u

    (@nosilver4u)

    do you know if that is deban 6 or 7?
    nm, it’s running almost the exact same version of php as I am, so it must be 7. I’m going to investigate fastcgi and apc to see if they can cause any issues.

    Plugin Author nosilver4u

    (@nosilver4u)

    Trying to replicate this, but I need a few pointers:
    1. Are you using nginx?
    2. Did you setup the web server & php yourself, or was it preconfigured by your webhost?
    3. Do you have any instructions you used to setup the server?

    Thread Starter tobyhage

    (@tobyhage)

    Yes it’s debian 7.
    Yes i use Nginx.

    I have configured the server my self.

    Php is running as: fastcgi_pass 127.0.0.1:9000;

    I have APC enabled
    extension=apc.so

    apc.enabled=1
    apc.shm_size=128M
    apc.ttl=3600
    apc.user_ttl=7200
    apc.gc_ttl=3600
    apc.max_file_size=1M

    Memcached is also enabled

    For the rest I’ll think no special configurations.

    Hopefully you can reproduce the problem.

    Plugin Author nosilver4u

    (@nosilver4u)

    Well, that’s frustrating. I’ve got nginx running with fastcgi (php-fpm) running on port 9000 just like you did. Installed apc, and memcached, and still everything works normal. Made sure my configuration was identical, and I still can’t replicate it. I even went through the phpinfo() output line by line to make sure I wasn’t missing anything.

    Do you have ‘use system paths’ checked on the EWWW IO options page?

    Can you think of anything else we might be missing?

    Thread Starter tobyhage

    (@tobyhage)

    Hello,

    After this post i have tried something myself and i can make it work now! But i still don’t understand why it’s not working. Maybe you understand.

    In my /etc/php5/fpm/php.ini i have

    disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,exec,pcntl_getpriority,pcntl_setpriority,popen,system,shell_exec,passthru,dl,closelog,openlog,escapeshellcmd,apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual

    In my /etc/nginx/sites-enabled/vlieginfo.com i have

    fastcgi_param PHP_VALUE “disable_functions=”;

    This is not working. When i do
    “disable_functions=”

    in /etc/php5/fpm/php.ini it’s working.

    Hopefully you understand why the problem occurs.

    Plugin Author nosilver4u

    (@nosilver4u)

    Do you get a warning about the exec() function at any point (because you should).

    In your original /etc/php5/fpm/php.ini, you had ‘exec’ listed in the disable_functions setting, but this was not showing on the test.php file that I had you create earlier. That is quite strange. I had noticed the “disable_functions=” value in the server variables which I thought was strange, but now that makes more sense since you had it in your site-specific config. The question is to figure out why it ‘appears’ to override the setting, but it doesn’t actually work.
    Can you change the values back to what you said, so I can double-check the test.php output?

    In my /etc/php5/fpm/php.ini i have

    disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,exec,pcntl_getpriority,pcntl_setpriority,popen,system,shell_exec,passthru,dl,closelog,openlog,escapeshellcmd,apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual

    In my /etc/nginx/sites-enabled/vlieginfo.com i have

    fastcgi_param PHP_VALUE “disable_functions=”;

    EDIT: One last thought, is that maybe it has trouble, because you’re setting disable_functions to an empty value. See if it makes a difference if you do something like this:

    fastcgi_param PHP_VALUE “disable_functions=shell_exec”;

    Plugin Author nosilver4u

    (@nosilver4u)

    Found the answer on php.net:

    PHP settings passed with php_value or php_flag will overwrite their previous value. Please note that defining disable_functions or disable_classes will not overwrite previously defined php.ini values, but will append the new value instead.

    So, you can’t overwrite the disable_functions setting on a per site basis, it must be set the way you want in the global php.ini

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘EWWW Image Optimizer requires jpegtran, optipng or pngout, and gifsicle.’ is closed to new replies.