近几日都想玩下服务器。此文是在linux下的lighttpd安装php。参考疯狂的鼠标 的博客: http://blog.csdn.net/shined_zhang/archive/2007/10/28/1852349.aspx
1.安装lighttpd看http://www.blogjava.net/chenlb/archive/2008/04/30/197617.html
2.安装mysql看http://www.blogjava.net/chenlb/archive/2007/03/20/105114.html
3.安装php,先到http://www.php.net 下载,我下载的是php-5.2.5
# tar -zxvf php-5.2.5.tar.gz
# cd php-5.2.5
#./configure --prefix=/usr/local/php-5.2.5 --enable-fastcgi --with-mysql=/usr/local/mysql --enable-zend-multibyte --with-config-file-path=/usr/local/php-5.2.5/conf --enable-discard-path --enable-force-cgi-redirect
# make
# make install
#mkdir /usr/local/php-5.2.5/conf
#cp php.ini-dist /usr/local/php-5.2.5/conf/php.ini
我在安装过程中也出过问题,说我没有找到xml2。要yum install libxml2*一下。
4.修改lighttpd的配置。 把mod_fastcgi去掉注释。
# vi /usr/local/lighttpd-1.4.19/lighttpd.conf
server.modules = (
#
# "mod_fastcgi",
#
)
找到fastcgi.server去掉注释,修改后看起来像。
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/usr/local/lighttpd-1.4.19/php-fastcgi.socket",
"bin-path" => "/usr/local/php-5.2.5/bin/php-cgi"
)
)
)
5.php测试页面phpinfo.php放到你的www目录下。
<?php
echo phpinfo();
?>
最后启动或重启lighttpd即可。
分享到:
相关推荐
在Linux上安装Ruby on Rails和Lighttpd
use linux下安装php5、Lighttpd 1.下载各种PHP5需要的相关安装包(如jpeg8、libpng、freetype、zlib、GD库、curl、libxml2==),编译,安装,注意与服务器版本相同。 a.64位服务器对软件的编译: CFLAGS="-O3 -...
在Linux上安装Lighttpd,里面有遇到的一些问题的解决方法,整个安装流程,还有参考网站
phpLight 2014 是网上首套LightTPD+PHP集成包,集成最新Lighttpd+PHP+MySQL+SQL-Front+Zend Guard Loader+XCache。纯绿色,安装后无需再配置。支持系统服务和非服务两种启动方式,自由切换。一次性安装无需再安装,...
OS: CentOS release 5.5 Lighttpd: 1.4.28 安装 sudo yum install lighttpd.i386 lighttpd-fastcgi.i386 lighttpd-mod_mysql_vhost.i386 运行 检查配置文件 lighttpd -t -f lighttpd.conf 启动lighttpd服务 ...
2. 此为Lighttpd+PHP方案,需要apache+php方案的请到www.phpStudy.net下载phpStudy,Nginx+php方案下载phpfind。 3. 重装系统后或相关服务丢失时,只需要点一下『运行模式-应用』即可,更改路径自动启动。 4. 可通过...
这是一个可在安卓手机上布置的服务器环境,功能组件包括:lighttpd、php和mysql,能成功运行DZ等php程序,安装和配置过程十分简单,也许现在该是讨论用什么手机做服务器更合适的时候了。 演示图片为一成功运行的...
phpStudy for Linux 版本 (php一键安装包) 下载地址: ... ...适用:Linux服务器专用(lamp) ...2. phpstudy for linux版环境安装 ...Apache Nginx LightTPD MySQL ...支持centos,ubuntu,debian等Linux系统,12种组合
参考了网上的一些资源和信息, lighttpd是自己编译出来的,php-cgi是网上下载,合起来可以在android上使用。 里面也包括了配置文件。
Lighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。lighttpd是...
centos7下安装测试成功的所有安装包整合
最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载
lighttpd 流程分析工作模式,帮助理解lighttpd
主要内容包括:lighttpd介绍与分析准备工作、lighttpd网络服务主模型、lighttpd数据结构、伸展树、日志系统、文件状态缓存器、配置信息加载、i/o多路复用技术模型、插件链、网络请求服务响应流程、请求响应数据快速...
如何在ubuntu上实现lighttpd 1、下载mongoose使用mongoose中的example中的websocket_chat,实现websocket 2、websocket_chat源码下载路径 官网:https://cesanta.com 论坛:...
startLighttp.vbs 为一键启动lighttpd和php-cgi的启动脚本,php使用fastcgi host:port形式 test_cgi.cmd 为测试cgi传参数用(如果发现php程序返回No input file specified.说明server.document-root这个目录配置的有...
lighttpd-1.4.20.tar lighttpd-1.4.20.tar
startLighttp.vbs 为一键启动lighttpd和php-cgi的启动脚本,php使用fastcgi host:port形式 test_cgi.cmd 为测试cgi传参数用(如果发现php程序返回No input file specified.说明server.document-root这个目录配置的有...
varnish+lighttpd配置