lighttpd + PHP(fastcgi) 配置
php(fastcgi) 5.2.6 编译参数
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-gd=/usr --enable-calendar --with-zlib --with-bz2 --with-curl --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-openssl --enable-zend-multibyte --with-gettext --enable-exif --with-png-dir=/usr --with-jpeg-dir=/usr --with-libxml-dir=/usr --enable-gd-native-ttf --enable-dom --with-freetype-dir=/usr --with-iconv-dir=/usr --enable-fastcgi
lighttpd 1.5.0 编译参数
./configure --prefix=/usr/local/lighttpd --with-mysql=/usr/bin/mysql_config --with-openssl --with-pcre --with-bzip2 --enable-lfs --with-linux-aio
添加fastcgi 及lighttpd执行用户
groupadd wwwuseradd -g www -s /sbin/nologin -d /dev/null www
复制lighttpd源码包内 doc/spawn-php.sh 并修改如下
#!/bin/bash
## ABSOLUTE path to the spawn-fcgi binary
SPAWNFCGI="/usr/local/lighttpd/bin/spawn-fcgi"
## ABSOLUTE path to the PHP [...]
