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

    (@nosilver4u)

    Please turn on EWWW’s debugging setting, and post the debug information from the settings page via pastebin.com

    Thread Starter riccetto80

    (@riccetto80)

    Ok, thank you for reply!

    https://pastebin.com/a6pM1jGM

    done!

    Plugin Author nosilver4u

    (@nosilver4u)

    From what I can see, the bundled binaries are not compatible with your server. However, they have jpegtran installed locally and working, but not optipng, as it says “testing optipng: command not found”

    Thread Starter riccetto80

    (@riccetto80)

    I have already installed optipng application only for your account:
    [email protected] [~]# which optipng
    /home/sitecom/bin/optipng
    Please ask the plugin creator to check it and if he encounter any problem let us know which command he ran so we can test it on our end and further assist you. Thank you.
    —————————————–

    this said site5 support, seems your plugin dont realize there is the app.. i try to select option to use system path instead of local installed, now the error are 2, about both optipng and about pngout:

    https://pastebin.com/91PXtKMk

    Plugin Author nosilver4u

    (@nosilver4u)

    That is not generally considered a system path, and telling EWWW to ONLY use system paths will most definitely result in pngout ceasing to work unless your host installs pngout in a system location as well.

    That said, if they add /home/sitecom/bin/ to the $PATH variable, it should work, which it seems they have done. However, if the $PATH for the user running the web server, and the $PATH for whatever account they are using do not match, then it doesn’t work for EWWW IO (appears to be root). /home/sitecom/bin/ needs to be in the $PATH for the user running the webserver. If they install it in a normal system location, fix the value of $PATH for the web user, or move that binary to wp-content/ewww/optipng-custom, then it will work. Lot’s of options, they can take their pick.

    To perform the same test they did as the web-user, you can put this into a .php file, load it in a browser and see what it says:

    <?php exec( 'which optipng' ); ?>

    Thread Starter riccetto80

    (@riccetto80)

    All fixed, site5 support after your post was able to make your plugin don’t give any error anymore!

    Site5 are quite good at support the client.

    You too as well was polite and helpful, thank you!!!

    Plugin Author nosilver4u

    (@nosilver4u)

    That is quite impressive, most webhosts won’t even touch third-party software. Kudos to them!

    Hello,

    Renato F. from Site5 Support here.

    This has been resolved with:

    mkdir optipng
    cd optipng
    wget https://prdownloads.sourceforge.net/optipng/optipng-0.7.6.tar.gz?download
    tar -xzvf optipng-0.7.6.tar.gz
    rm optipng-0.7.6.tar.gz
    cd optipng-0.7.6
    ./configure --prefix=$HOME
    make
    make install

    then check if locally installed optipng is running fine:

    optipng -v
    or
    ~/bin/optipng -v

    must return something like this:

    OptiPNG version 0.7.6
    Copyright (C) 2001-2016 Cosmin Truta and the Contributing Authors.
    
    This program is open-source software. See LICENSE for more details.
    
    Portions of this software are based in part on the work of:
      Jean-loup Gailly and Mark Adler (zlib)
      Glenn Randers-Pehrson and the PNG Development Group (libpng)
      Miyasaka Masaru (BMP support)
      David Koblas (GIF support)
    
    Using libpng version 1.6.21 and zlib version 1.2.8-optipng

    Then copy it to wp-content/wwww/ as optipng-custom:

    cp ~/bin/optipng ~/public_html/wp-content/ewww/optipng-custom

    Note: not all Site5 servers have compiling tools available to final customers. In case make or make install fail and no binary is generated (or if you are just not comfortable doing this alone), just get in touch with our support and we will be willing to help you with this ??

    Plugin Author nosilver4u

    (@nosilver4u)

    @renatofrota, you might want to update your steps to use optipng 0.7.6, as 0.7.4 has several security vulnerabilities.

    Thanks for the heads up!

    I have now updated my post above (and for future readers, check current OptiPNG version at https://optipng.sourceforge.net/ ) and on riccetto80’s account on our server.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘optipng missing, site5 hosting’ is closed to new replies.