安装pcre-7.4.tar.bz2
#./configure
#make&&makeinstall
安装lighttpd1.4.15.tar.gz
#./configure--prefix=/usr/local/servers/lighttpd
#make
#makeinstall
#mkdir/usr/local/servers/lighttpd/conf
#mkdir/usr/local/servers/lighttpd/log
#mv./doc/lighttpd.conf/usr/local/servers/lighttpd/conf/
#cp./doc/rc.lighttpd.redhat/etc/init.d/lighttpd[可忽略]
#cp./doc/spawn-php.sh/usr/local/servers/lighttpd/bin/
#chown-Rlighttpd:lighttpd/usr/local/servers/lighttpd
安装php5.2.3.tar.gz
#./configure--prefix=/usr/local/servers/php5c--with-mysql=/usr/local/servers/mysql5--with-freetype-dir=/usr/local/servers/freetype2--with-png-dir=/usr/local/servers/libpng--with-gd=/usr/local/servers/gd2--with-jpeg-dir=/usr/local/servers/jpegsrc--with-zlib--with-libxml-dir=/usr/local/servers/libxml2--enable-mbstring--enable-sockets--with-ldap--enable-fastcgi--enable-force-cgi-redirect
配置conf/lighttpd.conf
$HTTP["host"]==""{
server.name=""
server.document-root="/www/web/htdocs"
server.errorlog="/usr/local/servers/lighttpd/log/-error.log"
accesslog.filename="/usr/local/servers/lighttpd/log/-access.log"
fastcgi.server=(".php"=>
("localhost"=>
(
"socket"=>"/tmp/php-fastcgi.socket",
"bin-path"=>"/usr/local/servers/php5c/bin/php-cgi"
)
)
)
}
配置bin/spawn-php.sh
SPAWNFCGI="/usr/local/servers/lighttpd/bin/spawn-fcgi"
FCGIPROGRAM="/usr/local/servers/php5c/bin/php"
debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3debian安装lighttpd1.4.15 php5.2.3
阅读(591) | 评论(0) | 转发(0) |