Linux Apache 安装、配置手稿
原方地址:http://www.kreny.com/computer/linux/apache.html
Apache 1.3.33 和 PHP 4.3.10 的动态模块和静态编译
安装 Apache 2.0.48 (草稿)
配置 Apache 2.0.48 (草稿)
使用 mod_limitipconn.c 来限制 apache 的并发数
定制 Apache index 目录
让apache上的图片有防止盗链的功能
资料: Unix 下的 Apache 中安装 PHP 的详细资料 (转自《PHP手册》)
Apache 1.3.33 和 PHP 4.3.10 的动态模块编译和静态编译
以下是 PHP 4 的 Apache 共享模块版本安装过程。
安装流程为 [编译安装 apache 1.3.33] ---> [编译安装 PHP 4.3.10] ---> [在 httpd.conf 中以模块形式调用 PHP](加入以下语句) : AddType application/x-httpd-php .php
LoadModule php4_module libexec/libphp4.so
安装过程: # wget http://jp2.php.net/get/php-4.3.10.tar.gz/from/this/mirror
# wget http://sunsite.tus.ac.jp/pub/apache/httpd/apache_1.3.33.tar.gz
# tar -zxvf php-4.3.10.tar.gz
# tar -zxvf apache_1.3.33.tar.gz
# ls -l
Total 8340
drwxr-xr-x 8 mysql games 4096 10 28 01:47 apache_1.3.33
drwxr-xr-x 14 1003 1003 4096 12 15 02:55 php-4.3.10# cd apache_1.3.33
# ./configure --prefix=/usr/local/apache --enable-module=so \
--enable-module=rewrite --enable-module=speling
Configuring for Apache, Version 1.3.33
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
o rewrite_module uses ConfigStart/End
+ using -ldb1 for DBM support
enabling DBM support for mod_rewrite
+ using system Expat
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard# make
# make install
+--------------------+
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /usr/local/apache/conf/httpd.conf |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /usr/local/apache/bin/apachectl start &n