God said, "Let there be light," and there was light.
警告:本文无任何技术含量,贴在这里大概是告诉大家不用apache也能有kbs的web。为了
节约宝贵时间建设和谐社会,建议不用往后看了。
准备工作
参考KBS安装文档,安装各devel包,下载lighttpd和php 5.x
安装步骤
$ cd ~/lighttpd-1.4.8
$ ./configure --prefix=/home/lighttpd
$ make && make install
$ cd ~/php-5.1.1
$ ./configure --prefix=/home/lighttpd --enable-fastcgi --disable-debug
--enable-pic --disable-rpath --enable-inline-optimization --with-dom
--with-gd --with-freetype-dir --with-png-dir --with-iconv --with-jpeg-dir
--with-zlib --enable-track-vars --with-mysql
$ make && make install
$ cd ~/kbs_bbs
$ ./configure --enable-site=happy --prefix=/home/bbs --with-www=/var/www/bbs
--with-php=/home/lighttpd/include/php --enable-ssh --enable-openssl
--with-mysql
$ make && make install
配置
$ cd /home/lighttpd/etc
$ cat lighttpd.conf
server.modules = ( "mod_access",
"mod_fastcgi",
"mod_accesslog" )
server.document-root = "/var/www/bbs/htdocs"
......
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.port = 8080
server.username = "bbs"
server.groupname = "bbs"
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/home/lighttpd/bin/php -c
/home/lighttpd/etc/php.ini"
)
)
)
$ tail php.ini
......
extension=../some/path/to/libphpbbslib.so
使用
$ su - bbs
$ cd /home/bbs/bin
$ ./miscd daemon
$ ./bbslogd
$ ......
$ /home/lighttpd/sbin/lighttpd -f /home/lighttpd/etc/lighttpd.conf
“我爱光我爱于是便有了光,我爱你我爱于是便有了你,我爱我自己我爱于是
便有了我自己。”
--
修改:FreeWizard FROM 211.151.90.87
FROM 211.151.90.87