本文系摇篮网同事,范晓涛在工作中总结的,希望能对大家有帮助
一、下载地址: lighttpd:http://www.lighttpd.net/download php:http://www.php.net/downloads.php 使用wget命令,下载到本地
二、安装: 解压,使用:tar -xzvf path 1.安装lighttpd ./configure –prefix=/home/lighttpd make make install 将doc下的lighttpd.conf文件拷贝到/home/lighttpd/etc下
2.安装php ./configure –prefix=/home/php –enable-fastcgi –enable-force-cgi-redirect –enable-zend-multibyte –with-config-file-path=/home/php/etc –enable-discard-path –with-jpeg-dir –with-png-dir –with-zlib –enable-xml –enable-mbstring –with-mysql=/home/mysql make make install 将php.ini文件拷贝到/home/php/etc下
三、配置 1.配置lighttpd server.document-root = “/home/fxt/www/discuz” #程序路径
四、lighttpd模块介绍 lighttpd 主要参考页面:
http://redmine.lighttpd.net/wiki/lighttpd/Docs
“mod_rewrite”, “mod_redirect”, “mod_access”, “mod_fastcgi”, “mod_expire”, “mod_compress”
主要介绍以上模块:
1.mod_rewrite模块: lighttpd不支持像apache中的.htaccess文件跳转,所以将.htaccess中的内容全部写到lighttpd.conf中去。 格式: . . . → Read More: lighttpd + php 详细配置指导
朋友评论