最近买的VPS刚到手,便忙活起来了
由于apache 2.3.5 alpha 与 php module 的不兼容,打算以Cherokee (上次试过,速度很快)作为web server.
于是乎,卸掉自带的apache 2.2,开始安装.
不过我这个人喜欢在一边看configure 参数,一边编译。由于VPS上没有预装ftp server.
所以便临时搭建了个服务器作为数据传输.
本想用nginx,想到从没试过lighttpd,就用它了.
下载源码,wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.26.tar.bz2
解压,进入目录
我的configure:
It was created by lighttpd configure 1.4.26, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr/local/lighttpd --with-ldap --with-attr --with-openssl --with-zlib --with-bzip2 --with-fam --with-memcache
检查依赖,一秒钟报错.GCC no found……
新系统,真的很新
yum install gcc
再次检查依赖,pcre 没有,zlib没有,bzip没有,pkg-config没有
晕,依次安装.
最后检查,又报错~
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables FAM_CFLAGS
and FAM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
fam 没有
yum install gamin
yum install fam-devel
这次OK了.
make && make install.安装成功
复制 源码包下doc下的lighttpd.conf到etc下.
稍加编辑后
/usr/local/lighttpd/sbin/lighttpd -t -f /etc/lighttpd.conf
测试一下
/usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
启动即可.
由于apache 2.3.5 alpha 与 php module 的不兼容,打算以Cherokee (上次试过,速度很快)作为web server.
于是乎,卸掉自带的apache 2.2,开始安装.
不过我这个人喜欢在一边看configure 参数,一边编译。由于VPS上没有预装ftp server.
所以便临时搭建了个服务器作为数据传输.
本想用nginx,想到从没试过lighttpd,就用它了.
下载源码,wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.26.tar.bz2
解压,进入目录
我的configure:
It was created by lighttpd configure 1.4.26, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr/local/lighttpd --with-ldap --with-attr --with-openssl --with-zlib --with-bzip2 --with-fam --with-memcache
检查依赖,一秒钟报错.GCC no found……
新系统,真的很新
yum install gcc
再次检查依赖,pcre 没有,zlib没有,bzip没有,pkg-config没有
晕,依次安装.
最后检查,又报错~
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables FAM_CFLAGS
and FAM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
fam 没有
yum install gamin
yum install fam-devel
这次OK了.
make && make install.安装成功
复制 源码包下doc下的lighttpd.conf到etc下.
稍加编辑后
/usr/local/lighttpd/sbin/lighttpd -t -f /etc/lighttpd.conf
测试一下
/usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
启动即可.