debian/ubuntu安装开源版litespeed-openlitespeed

debian/ubuntu安装开源版litespeed – openlitespeed

准备工作:

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

准备工作

wget http://open.litespeedtech.com/packages/openlitespeed-1.2.7.tgz && tar zxvf openlitespeed-1.2.7.tgz

cd openlitespeed-1.x.x
./configure
make && make install

安装完毕,控制面板为https://[ip]:7080,用户名:admin,密码:123456。
默认已安装php,如需重新编译PHP请参照:Debian安装LiteSpeed+PHP+MySQL

配置使php支持邮件发送

apt-get remove sendmail
apt-get install exim4 
cp /usr/local/lsws/php/php.ini /usr/local/lsws/lsphp5/lib/
echo /usr/local/lsws/lsphp5/lib/php.ini sendmail_path = /usr/sbin/sendmail -t -i

执行

exim4  dpkg-reconfigure exim4-config

选择Intranet,即第一项,接下里的选项使用默认配置