php不支持thttpd的最新版本thttpd-2.25b,所以我做了个2.25b的补丁
以php5.4为例
下载thttpd-2.25b.tar.gz
tar -zxf thttpd-2.25b.tar.gz
下载php-5.4.7.tar.bz2
tar -jxf php-5.4.7.tar.bz2
cd php-5.4.7
patch -p1 ../php-5.4.7_thttpd-2.25b.patch
./configure --prefix=/opt/php-5.4.7 --with-thttpd=../thttpd-2.25b
make&&make install
cd ../thttpd-2.25b
patch -p1 <../thttpd-2.25b-fix_getline.patch
./configure --prefix=/usr/local
make&&make install
cp contrib/redhat-rpm/thttpd.conf /etc/
cp contrib/redhat-rpm/thttpd.init /etc/init.d/thttpd
安装后的thttpd已经内含了php的解释器
thttpd.conf修改如下
cat /etc/thttpd.conf
# This section overrides defaults
dir=/usr/local/www
chroot
user=www# default = nobody
logfile=/var/log/thttpd.log
#pidfile=/var/run/thttpd.pid
# This section _documents_ defaults in effect
# port=80
# nosymlink# default = !chroot
# novhost
# nocgipat
# nothrottles
# host=0.0.0.0
# charset=iso-8859-1
/etc/init.d/thttpd start
server api已经是thttpd
php5.3的编译方法相同
- 大小: 53.7 KB
分享到:
相关推荐
thttpd- 是一款小型/快速/非阻塞的HTTP服务程序
thttpd is a simple, small, portable, fast, and secure HTTP server.
[root@ workdir]#tar -zxvf thttpd-2.25b.tar.gz 进入解压后的源码文件夹: [root@ workdir]#cd thttpd-2.2.25b 源码文件夹主要文件说明如下: contrib/redhat-rpm 目录里面存放有thttpd配置文件thttpd.conf extras/...
用于小型微处理器的嵌入式WEB服务器源码
thttpd服务器配置方法,学习ARM必备
thttpd 开发 编译所需要的第三方库, 放上来主要是方便大家下载,这样会比较快一些。
thttpd [-C configfile] [-p port] [-d dir] [-dd data_dir] [-r|-nor] [-s|-nos] [-v|-nov] [-g|-nog] [-u user] [-c cgipat] [-t throttles] [-h host] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M max...
在arm开发板上移植PHP,已经编译成功,支持编译器arm-none-gnueabi-linux
该文件描述嵌入式Linux 下的thttpd CGI 的环境配置方法,及其测试方法
light web server... light web server... light web server... light web server... 最新版本的应用到嵌入式Linux的轻量型web server
thttpd是一款小型高效的http服务器, 这是该服务器的源码.
thttpd - 小型 HTTP 服务器 ..../thttpd -D -C test.config 测试配置: port=80 user=nobody dir=./www nochroot cgipat=/cgi-bin/** logfile=thttpd.log pidfile=thttpd.pid 原作者:Jef Poskanzer
PHP的配置非常灵活,可以通过php.ini, httpd.conf, .htaccess文件进行设置,还可以在脚本程序里使用ini_set()及其他的特定的函数进行设置。通过phpinfo()和get_cfg_var()函数可以得到配置选项的各个值。
嵌入式Linux下的thttpd web服务器的移植.pdf
双服务器支持,一个过程同时支持HTTP / HTTPS HTTP重定向,用于从HTTP服务器轻轻重定向到HTTPS 原生PHP支持,如果在merecat.conf启用,则使用php-cgi 最终的占位面积(〜140 kiB)使其快速适用于小型和嵌入式系统!...
基于Linux的嵌入式Web服务器Thttpd的应用研究与实现.pdf
thttpd服务器概述.docx
用来测试嵌入式系统开发过程中的boa、thttpd服务器的配置情况。
嵌入式web服务器thttpd,适合初学者学习,结构简单。采用多路复用技术
Web服务移植thttpd在ARM移植