• Resolved peterpijpelink

    (@peterpijpelink)


    hello I like your plugin and wants to use it! However, after install I tried it and gave me a warning. EWWW Image Optimizer requires jpegtran, optipng, and gifsicle. You are missing: jpegtran, optipng, gifsicle. Please install via the Installation Instructions and update paths (if necessary) on the Settings Page.

    When I try this optipng on the cmdline it works (as root). My locations I did specify but still the plugin keeps giving the same error.

    [root@ns1 /]# find -name optipng
    ./usr/local/bin/optipng
    ./var/www/vhosts/plcs.eu/httpdocs/optipng-0.7.1/src/optipng
    ./var/www/vhosts/plcs.eu/httpdocs/optipng-0.7.1/src/optipng/optipng
    [root@ns1 /]#

    So I added the /usr/local/bin/ one and also tried to other one. no luck, same for the other jpg and gif optimizer.

    [root@ns1 /]# find -name gifsicle
    ./usr/local/bin/gifsicle
    ./var/www/vhosts/plcs.eu/httpdocs/gifsicle-1.67/src/gifsicle
    [root@ns1 /]#

    no luck so far, what am I doing wrong here? I did install in the httpdocs folder of this vhost but also see the files when I run them from any other place fine.

    [root@ns1 /]# pwd
    /
    [root@ns1 /]# optipng -v
    OptiPNG version 0.7.1
    Copyright (C) 2001-2012 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.4.9 and zlib version 1.2.6-optipng
    [root@ns1 /]#

    [root@ns1 /]# gifsicle -v
    gifsicle: <stdin>: is a terminal
    [root@ns1 /]#

    any idea? help is welcome ??

    https://www.ads-software.com/extend/plugins/ewww-image-optimizer/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter peterpijpelink

    (@peterpijpelink)

    Yes safe mode is on and must stay on. I asked our hoster and they look at the other option monday,

    ” most probably the open_basedir restrictions that block you from using this. open_basedir restricts access of the php script to files only in the web directories.”

    I keep you updated.

    Plugin Author nosilver4u

    (@nosilver4u)

    then we’re at an impasse, there’s no way to get the plugin to work in safe mode. Safe mode forces exec() to run only binaries in a specific folder. Besides optipng, jpegtran, and gifsicle, we use ‘mv’, ‘rm’, and ‘which’. There’s just too much effort to try and get those to all work together in the safe mode exec folder. sorry

    Thread Starter peterpijpelink

    (@peterpijpelink)

    I will ask them, I did a checkup using W3 cache and it says safe mode is on.

    Server Modules & Resources:

    Plugin Version: 0.9.2.4
    PHP Version: 5.2.17 (PHP5 required for Minify, Rackspace CloudFiles, Microsoft Azure support)
    Web Server: Apache
    FTP functions: Installed (required for Self-hosted (FTP) CDN support)
    Multibyte String support: Installed (required for Rackspace Cloud Files support)
    cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
    zlib extension: Installed (required for compression support)
    Opcode cache: Installed (APC)
    Memcache extension: Installed
    HTML Tidy extension: Not installed (required for HTML Tidy minifier suppport)
    Mime type detection: Not installed (required for CDN support)
    Hash function: Installed (hash) (required for NetDNA purge support)
    Safe mode: On
    Open basedir: On: /var/www/vhosts/plcs.eu/httpdocs:/tmp
    zlib output compression: Off

    so maybe Open basedir will help, but yea as you said, I doubt we get this working with safe mode on, we do insist on using safe mode on as it is more secure.

    Thread Starter peterpijpelink

    (@peterpijpelink)

    it is solved.

    1. disaple PHP safe_mode for this domain in Plesk (CentOS)
    2. copy the 3 binaries in a safe directory, which is OUTSIDE of the web site (security recommendation by the plugin programmer!) – I chose /var/www/vhosts/domain.com/bin
    3. modify the php variable open_basedir in the vhost.conf file by adding the path to the directory chosen in 2.
    4. Add the correct path in WordPress
    5. restart Apache to take over the changes

    ?? thankS!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘[Plugin: EWWW Image Optimizer] something goes wrong here…’ is closed to new replies.