Hi,
I have installed LittleUtils on my CloudLinux server:
First the dependencies:
Downloading and untarring LittleUtils (1.0.37 is also available):
Installing:
It is also possible that your binaries aren't accessible to your web server user. You can link these binaries using the following commands:
Verifying installation:
- Last one does not find anything?!?
- Last one does not find anything?!?
- Last one does not find anything?!?
- Does not find anything?!?
If it's installed correctly you should see something like:
[email protected] [/usr/local/bin]# which opt-jpg
/usr/local/bin/opt-jpg
On every which.
After that I created:
And inserted:
Run the update of CageFS
And enable CageFS
However, it's not working (yes only for jpg), the others (see above) are not to be found using which... What am I doing wrong here?
I have installed LittleUtils on my CloudLinux server:
First the dependencies:
Code:
# yum install gcc libpng libpng-devel gifsicle pngcrush p7zip lzip lzma
Code:
# wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.27/littleutils-1.0.27.tar.bz2
# tar -jxf littleutils-1.0.27.tar.bz2
# cd littleutils-1.0.27
Code:
# ./configure --prefix=/usr && make && make install && make install-extra
Code:
# 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
Verifying installation:
Code:
# which to-xz
# which opt-jpg
# which opt-png
Code:
# which lowercase
# which opt-gif
Code:
# which tempname
# which pngstrip
# which jpegtran
# which imagsize
# which filesize
# which pngcrush
Code:
# which gifsicle
Code:
# which pngrecolor
[email protected] [/usr/local/bin]# which opt-jpg
/usr/local/bin/opt-jpg
On every which.
After that I created:
Code:
# vi /etc/cagefs/conf.d/littleutils.cfg
Code:
[littleutils]
comment=Littleutils
paths = /usr/local/bin/to-xz, /usr/local/bin/opt-jpg, /usr/local/bin/opt-png, /usr/local/bin/lowercase, /usr/local/bin/opt-gif, /usr/local/bin/tempname, /usr/local/bin/pngstrip, /usr/bin/jpegtran, /usr/local/bin/imagsize, /usr/local/bin/filesize, /usr/bin/pngcrush, /usr/bin/gifsicle, /usr/local/bin/pngrecolor
Code:
# cagefsctl --force-update
Code:
# /usr/sbin/cagefsctl --enable-all
However, it's not working (yes only for jpg), the others (see above) are not to be found using which... What am I doing wrong here?
Last edited: