LiteSpeed – instalacja na Ubuntu 15.04

lt_o

LiteSpeed – jest to komercyjny serwer WWW który zawiera w sobie poprawki i dziury jakie powinny być a nigdy nie zostały w Apache2 naprawione, LiteSpeed kompatybilny jest z modułem mod_rewrite więc bez problemu zadziała jako bezpośredni zamienik.

Dzisiejszy poradnik opisuje instalacje i uruchomienie wersji darmowej, na systemie Ubuntu 15.04 wraz z Varnish Cache

1. Potrzebne pakiety :

sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install rcs libpcre3-dev libmcrypt-dev libexpat1-dev libssl-dev libgeoip-dev zlib1g-dev libxml2 libxml2-dev libpng-dev openssl -y 

2. Pobieranie źródeł i instalacja :

ls="openlitespeed-1.4.13"
wget http://open.litespeedtech.com/packages/$ls.tgz
tar xvfz $ls ; cd $ls
./configure
make && make install

3. Aliasy – dla łatwiejszego uruchamiania i wyłączania serwera :

echo "alias litespeed-start='/usr/local/lsws/bin/lswsctrl start'" >> /root/.bashrc
echo "alias litespeed-stop='/usr/local/lsws/bin/lswsctrl stop'" >> /root/.bashrc
source /root/.bashrc

4. Uruchomienie serwera:

litespeed-start

5. Serwer Varnish – gotowy do pracy LiteSpeed :

curl https://repo.varnish-cache.org/GPG-key.txt | apt-key add -
echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.1" >> /etc/apt/sources.list.d/varnish-cache.list
apt-get update ; apt-get install varnish -y
rm /lib/systemd/system/varnish.service ; wget http://pliki.linuxiarz.pl/10-2015/varnish.service -O /lib/systemd/system/varnish.service
rm /etc/varnish/default.vcl ; wget http://pliki.linuxiarz.pl/11-2015/ls.vcl -O /etc/varnish/default.vcl
systemctl daemon-reload
systemctl restart varnish