源碼:
#FOR APACHE
export FilePath=/usr/local
export MysqlName=mysql
export PHPName=php
export ApacheName=apache_
#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/php
/libphp
a
make
make install
echo
ok!ok!ok!
源碼:
#FOR APACHE
export FilePath=/usr/local/myferly
export MysqlName=mysql
gamma
export PHPName=php
export ApacheName=
#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
apxs
=$FilePath/apache/bin/apxs
enable
track
vars
prefix=$FilePath/php
make
make install
echo
ok!ok!ok!
From:http://tw.wingwit.com/Article/program/MySQL/201311/29347.html