FastCGI
Apache 1.3 启用 Mod_fastcgi
八 17th
1. 下载:
Apache 1.3:
[http://labs.xiaonei.com/apache-mirror/httpd/apache_1.3.41.tar.gz]
Fastcgi (Apache Mod):
[http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz]
2. 编译:
# 解压缩 Apaache
tar zxvf apache_1.3.41.tar.gz
# 解压缩 mod_fastcgi
tar zxvf mod_fastcgi-2.4.6.tar.gz
# 移动 mod_fastcgi 到 Apache 的 Modules 目录
mv mod_fastcgi-2.4.6 apache_1.3.41/src/modules/fastcgi
# 开始编译安装
./configure –prefix=/home/apache \
–enable-module=so \
–enable-module=rewrite \
–activate-module=src/modules/fastcgi/libfastcgi.amake
make install
3. 配置:
# 复制 apachectl 文件到系统启动目录.
cp /home/apache/bin/apachectl /etc/init.d/httpd
# 编辑 /etc/init.d/httpd 文件. 添加 chkconfig 自动启动参数
vi /etc/init.d/httpd
#!/bin/sh
#
# chkconfig: – 85 15
# description: Apache 1.3.41 World Wide Web Server
4. 测试:
# 启动 Apache 服务
services httpd restart
# 查看 Fastcgi 进程
ps -eLf | grep “fcgi” | grep -v “grep”
nobody /home/apache/bin/fcgi-
# 查看 Apache 编译模块
/home/apache/bin/httpd -l
mod_fastcgi.c