- Install littleutils on your Linux server (step-by-step instructions are below).
- Upload the 'cw-image-optimizer' plugin to your '/wp-content/plugins/' directory.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Done!
Installing littleutils: Ubuntu 11.04 (32-bit)
These instructions were tested with littleutils 1.0.27 and Ubuntu 11.04 (32-bit, desktop edition).
- Download the latest version of littleutils to your Download directory
- Open a terminal window (Applications -> Accessories -> Terminal)
- Move the download to a better location: sudo mv ~/Downloads/littleutils-1.0.27.tar.bz2 /usr/local/src/
- Use the root user account: sudo su
- Install dependencies: apt-get install gifsicle pngcrush lzip libpng12-0 libpng12-dev libjpeg-progs p7zip-full
- Uncompress littleutils: cd /usr/local/src && tar jxvf littleutils-1.0.27.tar.bz2 && cd littleutils-1.0.27
- Configure and install littleutils: ./configure --prefix=/usr && make && make install && make install-extra
Installing littleutils: CentOS 6.0 (32-bit)
These instructions were tested with littleutils 1.0.27 and CentOS 6.0 (32-bit, "Basic server" configuration).
- Log in as the root user.
- Enable the rpmforge repository: cd /usr/local/src/ && wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm && rpm -i rpmforge-release-0.5.2-2.el6.rf.i686.rpm
- Install dependencies: yum install gcc libpng libpng-devel gifsicle pngcrush p7zip lzip
- Download the latest version of littleutils: cd /usr/local/src; wget http://downloads.sourceforge.net/project/littleutils/littleutils/1.0.27/littleutils-1.0.27.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flittleutils%2F
- Uncompress littleutils: tar jxvf littleutils-1.0.27.tar.bz2 && cd littleutils-1.0.27
- Configure and install littleutils: ./configure --prefix=/usr && make && make install && make install-extra
Troubleshooting
littleutils is installed, but the plugin says it isn't. If you are confident that it is installed properly, then go to the plugin configuration page and disable the installation check.
It is also possible that your binaries aren't accessible to your web server user. You can link these binaries using the following commands:
ln -s /usr/local/bin/opt-jpg /usr/bin/opt-jpg
ln -s /usr/local/bin/opt-png /usr/bin/opt-png
ln -s /usr/local/bin/opt-gif /usr/bin/opt-gif
ln -s /usr/local/bin/tempname /usr/bin/tempname
ln -s /usr/local/bin/imagsize /usr/bin/imagsize
ln -s /usr/local/bin/gifsicle /usr/bin/gifsicle
ln -s /usr/local/bin/pngcrush /usr/bin/pngcrush
ln -s /usr/local/bin/pngrecolor /usr/bin/pngrecolor
ln -s /usr/local/bin/pngstrip /usr/bin/pngstrip