源码:#FOR APACHE
export FilePath=/usr/local
export MysqlName=mysql
export PHPName=php
export ApacheName=apache_
#install mysql
cd $FilePath
tar zxvf $MysqlNametargz
cd $MysqlName
/configure prefix=$FilePath/mysql
make
make install
cd $FilePath/$MysqlName/bin
/mysql_install_db
#install php and apache
cd $FilePath
tar zxvf $PHPNametargz
tar zxvf $ApacheNametargz
cd $FilePath/$ApacheName
/configure prefix=$FilePath/apache
cd $FilePath/$PHPName
/configure withmysql=$FilePath/mysql withapache=$FilePath/$ApacheName enabletrackvars prefix=$FilePath/php
make
make install
cd $FilePath/$ApacheName
/configure prefix=$FilePath/apache activatemodule=src/modules/php/libphpa
make
make install
echo ok!ok!ok!
源码:#FOR APACHE
export FilePath=/usr/local/myferly
export MysqlName=mysqlgamma
export PHPName=php
export ApacheName=
#install mysql
cd $FilePath
tar zxvf $MysqlNametargz
cd $MysqlName
/configure prefix=$FilePath/mysql
make
make install
cd $FilePath/mysql/bin
/mysql_install_db
#install php and apache
cd $FilePath
tar zxvf $PHPNametargz
tar zxvf $ApacheNametargz
cd $FilePath/$ApacheName
/configure prefix=$FilePath/apache enableauthanon enableauthdbm
enablefilecache enablecache enablediskcache enablememcache
enableextfilter enableproxy enableproxyconnect enableproxyhttp
enablehttp enabledav enablerewrite enableso
make
make install
cd $FilePath/$PHPName
/configure withmysql=$FilePath/mysql withapxs=$FilePath/apache/bin/apxs enabletrackvars prefix=$FilePath/php
make
make install
echo ok!ok!ok!