熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> MySQL >> 正文

編譯APACHE+PHP+MYSQL的一個腳本

2022-06-13   來源: MySQL 

  源碼:#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!
  

From:http://tw.wingwit.com/Article/program/MySQL/201311/29347.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.