安装编译所需的程序以及mysql server 5.1
apt-get install patch make gcc g++ autoconf2.13 libxml2-dev mysql-server zlib-bin zlib1g-dev libjpeg62-dev libpng12-dev libmysql++-dev mcrypt curl libcurl4-openssl-dev libmcrypt-dev libmhash-dev libfreetype6-devexport PHP_AUTOCONF=/usr/bin/autoconf-2.13
export PHP_AUTOHEADER=/usr/bin/autoheader-2.13
只有用2.13版的autoconf才能正确编译php,否则会出错
下载编译 linux x86版 Litespeed
wget http://www.litespeedtech.com/pac ... d-i386-linux.tar.gz
tar xvf lsws-4.0.20-std-i386-linux.tar.gz
cd lsws-4.0.20
./install.sh
出现许可协议按空格键,然后输入Yes接受协议:Do you agree with abot license ? 输入 Yes
询问LiteSpeed安装路径?可直接回车默认Destination [/usr/local/lsws]:
管理员用户名,回车使用默认adminUser name [admin]:接着输入两次管理员密码
管理员邮箱,如果回车使用默认:Email address [root@localhost]:
LiteSpeed用户及组,回车使用默认即可:User [nobody]:Group [nogroup]:
web服务端口,网站服务为80HTTP PORT [8088]:80
管理程序服务端口,默认为7080,直接回车即可Admin HTTP port [7080]:
是否安装phpSetup up PHP [Y/n]:Y
是否安装AWSatas ? NWould you like to install AWStats Add-on module [y/N]?N
是否设置litespeed为开机自动启动,YWould you lite to have LiteSpeed Web Server started automaticallywhen the server restarts [Y/n]?
安装完成后,是否启动,Y[OK] The startup script has been successfully installed!Would you like to start it right now [Y/n]?