• Resolved Amiddleton

    (@amiddleton)


    Good Afternoon,

    I have a Synology server (DS212J) at my home and I have successfully installed wordpress to it. I have a few plugins installed but the last one I would like to working is EWWW Image optimizer. It has the potential to save me a lot of storage space if I could only get the missing apps installed correctly.

    I have the plugin installed but like most people it says that jpegtran, optipng, pngout, pngquant and gifsicle are missing.

    the folder structure is like most peoples:

    mywebsite/wordpress/

    with the location on my laptop being:

    T:\web\wordpress\
    or
    \\192.168.1.12\wordpress\

    so i tried downloading the jpegtran.exe and placing that in:

    mywebsite/wordpress/wp-content/ewww/

    but it still doesn’t see it so i’m going to assume it is going to be the same for all of them.

    I can telnet to the server (if that is the way to do the install), but i’m struggling to connect at the moment (something i need to sort out tonight).

    Having a search of the support i thought i could just drop the .exe files into the ewww folder and it should just pick it up, but to no avail.

    on the plugin dashboard it says ‘nice command not found on your system (not required), tar command not found on your system (required for automatic pngout installer)

    I have a good understanding of VB but this is well beyond me.

    Any pointers would be much appreciated

    Thank you

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

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

    (@nosilver4u)

    Gotta have plugin status and debug info to start…

    Thread Starter Amiddleton

    (@amiddleton)

    ah yes sorry.

    Plugin status

    Debug Log

    I now have root access to the server via telnet.

    I don’t think i’m installing jpegtran in the right directory as you can see in this log i get a lot of errors.

    Thread Starter Amiddleton

    (@amiddleton)

    I have now managed to install jpegtran, optipng, pngout, in the root of the server using GCC as the compiler.

    I didn’t have the a compiler or make installed, but it has since installed.

    here
    is the new debug log

    Plugin Author nosilver4u

    (@nosilver4u)

    Do you know what sort of operating system it uses? Is it a debian based setup, rpm-based? What might help is knowing how you got GCC installed on the system.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, looks like it uses it’s own package manager, and it has an ARM processor, so there isn’t an easier way than what you’re already doing. Just wanted to confirm that first.

    From the log you posted earlier, it seems you’ve successfully ‘untarred’ the files. You’ve got ./configure run, and then you run ‘make’. The last step is to run ‘make install’. This should install the binary in the necessary folder to let EWWW IO detect it automatically. If that still doesn’t do the trick, let me know. Try it with all three tools, just to make sure that jpegtran isn’t being picky. It compiles a little differently than the other tools.

    thanks

    Thread Starter Amiddleton

    (@amiddleton)

    Thank you for your time, I shall write down all the commands that I used to set this up so far.

    Thread Starter Amiddleton

    (@amiddleton)

    right these are all the commands I used but it’s still not seeing it within the wordpress plugins, even copying the files suggested still not solves the problem:

    login as: root
    [email protected]′s password:
    BusyBox v1.16.1 (2011-03-24 02:15:54 CST) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.
    DiskStation>uname –a
    Linux DiskStation 2.6.32.12 #3776 Sat Aug 17 02:12:49 CST 2013 armv5tel GNU/Linux synology_88f6281_212j
    DiskStation> cd /volume1/@tmp/
    DiskStation> wget https://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
    DiskStation> ln -s /volume1/@optware /opt
    DiskStation> sh syno-mvkw-bootstrap_1.2-7_arm.xsh
    DiskStation> rm syno-mvkw-bootstrap_1.2-7_arm.xsh
    DiskStation> reboot
    DiskStation> vi ~/.profile
    PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
    export PATH
    DiskStation> ipkg update
    DiskStation> ipkg install gcc
    DiskStation> ipkg install make
    DiskStation> ipkg install optware-devel
    DiskStation> wget https://prdownloads.sourceforge.net/optipng/optipng-0.7.4.tar.g
    z?download
    DiskStation> tar xvzf optipng-0.7.4.tar.gz && cd optipng-0.7.4
    DiskStation> ./configure && make
    DiskStation> make install
    DiskStation> wget https://www.ijg.org/files/jpegsrc.v9a.tar.gz
    DiskStation> tar xvzf jpegsrc.v9a.tar.gz && cd jpeg-9a
    DiskStation> make install

    This is the full blown account of all the commands and what they do on the server, including how I copied the files over to volume1 where I was hoping the plugin would see the files.

    Is it something to do with linking the folders in the root area to the volume1?

    Would love to get this working as it’s the last thing I need to install.

    Plugin Author nosilver4u

    (@nosilver4u)

    One thing it looks like you’re struggling with there is knowing what a leading slash (/) does/means. If you type a path like /optipng/src/xxx, the system looks from the root (/) of your filesystem for that directory. If you omit the leading /, like optipng/src/xxx, then it looks for that path in the current directory. I probably need to update my instructions a little bit to be more clear on that.

    At any rate, the ‘make install’ commands look like they were successful, but perhaps the ‘web’ user isn’t able to actually use system-installed binaries or something like that. Then it looks like you copied the binaries to xxx-custom, but I’m not sure you did it right. Looks like you tried about 30 different commands trying to get the syntax right, and on the jpegtran one, you copied an entire directory to jpegtran-cus.

    To continue (since you already have the binaries compiled), log back into your shell and try this command:

    optipng -v

    If it works, then your system is at least capable of running the binaries. Let me know how that goes, and we’ll go from there.

    Thread Starter Amiddleton

    (@amiddleton)

    thank you for your time and patience. I shall log on tonight and try it.

    and yes I was struggling a bit but slowly getting there.

    Thread Starter Amiddleton

    (@amiddleton)

    It’s a good start:

    DiskStation> pwd
    /root
    DiskStation> optipng -v
    OptiPNG version 0.7.4
    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.12 and zlib version 1.2.7-optipng
    DiskStation> jpegtran -v
    Independent JPEG Group's JPEGTRAN, version 6b  27-Mar-1998
    Copyright (C) 1998, Thomas G. Lane
    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, good deal. How about this:

    which optipng

    and

    which jpegtran

    This will tell us where the binaries (executables) were installed on the system. It’s interesting that jpegtran is showing an older version. It must already be installed on the DiskStation. It’s not really a big deal to have an older version of jpegtran, as I haven’t seen any differences in my testing.

    Couple other things we need to check. The debug log showed that the webserver runs under the Amiddleton user. Is there a folder named /home/Amiddleton? If so, try adding this to /home/Amiddleton/.profile :

    export PATH=$PATH:/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:

    or

    export PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:

    Then check the plugin status and see if that changes anything.

    Thread Starter Amiddleton

    (@amiddleton)

    well the first part worked alright.

    BusyBox v1.16.1 (2013-08-17 02:30:39 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    DiskStation> which optipng
    /usr/local/bin/optipng
    DiskStation> which jpegtran
    /usr/syno/bin/jpegtran

    But there was no such file with /home/Amiddleton/.profile

    DiskStation> ls /
    bin
    dev
    etc
    etc.defaults
    initrd
    lib
    lost+found
    mnt
    opt
    proc
    root
    sbin
    scripts
    sys
    tmp
    usr
    var
    var.defaults
    volume1
    volume2
    DiskStation> ls -a
    .
    ..
    .esd_auth
    .profile
    .pulse
    .pulse-cookie
    .ssh
    jpeg-9a
    jpegsrc.v9a.tar.gz
    optipng-0.7.4
    optipng-0.7.4.tar.gz
    Plugin Author nosilver4u

    (@nosilver4u)

    Is there an /etc/profile ?
    Try ‘ls /etc’

    And if so, paste the contents via pastebin please.

    Thread Starter Amiddleton

    (@amiddleton)

    ls /etc fired up a list and profile is in there.

    so I opened that up.

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘EWWW Image optimizer with a Synology server’ is closed to new replies.