0. 保证mysql已经安装.
===================== 【相关文章:新学了几个命令:)】 【扩展阅读:非热插拔SCSI硬盘在debian3.0】假定mysql安装在 /data2/mysql 目录下. 【扩展信息:又是难题..... PC server 】 1. 下载php & apache源码(在php网站 www.php.net 或者已知的路径),然后解压. ====================================================================== cd ~zhxu fetch http://cn.php.net/distributions/php-4.3.6.tar.gz rsync 202.106.184.186::apache/apache_1.3.27.tar.gz . tar -zxvf php-4.3.6.tar.gz tar -zxvf apache_1.3.27.tar.gz 2. 初始化编译 apache . ====================================================================== cd apache_1.3.27 ./configure 3. 安装 php 模块. 并关联 mysql & apahce. ====================================================================== cd ../php-4.3.6 ./configure --with-mysql=/data2/mysql --with-apache=../apache_1.3.27 make make install 4. 编译安装 apache. 并关联 php. ====================================================================== cd ../apache_1.3.27 cp ../php-4.3.6/libs/libphp4.a src/modules/php4/libphp4.avi src/include/httpd.h
---------------------------------------------------------------------- #define hard_server_limit 256 #define hard_server_limit 4096编译apache可以将所有某快编译成动态(dso)的与静态的
动态编译如下: /*********************************************************************... 下一页