Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1367568
  • 博文数量: 828
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5030
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-29 13:29
文章分类

全部博文(828)

文章存档

2011年(1)

2008年(827)

我的朋友

分类: LINUX

2008-08-29 13:36:22

 
安装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
阅读(562) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~