源碼:--------------------------------------------------------------------------------#FOR apache 1.3
export FilePath=/usr/local
export MySQLName=
MySQL-3.23.52
export PHPName=PHP-4.2.2
export ApacheName=apache_1.3.26
#install
MySQL cd $FilePath
tar -zxvf $MySQLName.tar.gz
cd $MySQLName
./configure --prefix=$FilePath/
MySQL make
make install
cd $FilePath/$MySQLName/bin
./
MySQL_install_db
#install PHP and apache
cd $FilePath
tar -zxvf $PHPName.tar.gz
tar -zxvf $apacheName.tar.gz
cd $FilePath/$apacheName
./configure --prefix=$FilePath/apache
cd $FilePath/$PHPName
./configure --with-
MySQL=$FilePath/
MySQL --with-apache=$FilePath/$apacheName --enable-track-vars --prefix=$FilePath/PHP
make
make install
cd $FilePath/$apacheName
./configure --prefix=$FilePath/apache --activate-module=src/modules/php4/libPHP4.a
make
make install
echo "ok!ok!ok!"
--------------------------------------------------------------------------------
源碼:--------------------------------------------------------------------------------#FOR apache 2
export FilePath=/usr/local/myferly
export MySQLName=
MySQL-4.0.10-gamma
export PHPName=PHP-4.3.1
export apacheName=httpd-2.0.44
#install
MySQL cd $FilePath
tar -zxvf $MySQLName.tar.gz
cd $MySQLName
./configure --prefix=$FilePath/
MySQL make
make install
cd $FilePath/
MySQL/bin
./
MySQL_install_db
#install PHP and apache
cd $FilePath
tar -zxvf $PHPName.tar.gz
tar -zxvf $apacheName.tar.gz
cd $FilePath/$apacheName
./configure --prefix=$FilePath/apache --enable-auth-anon --enable-auth-dbm
--enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ext-filter --enable-proxy --enable-proxy-connect --enable-proxy-http
--enable-http --enable-dav --enable-rewrite --enable-so
make
make install
cd $FilePath/$PHPName
./configure --with-
MySQL=$FilePath/
MySQL --with-apxs2=$FilePath/apache/bin/apxs --enable-track-vars --prefix=$FilePath/PHP
make
make install
echo "ok!ok!ok!"