程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> 編譯APACHE+PHP+MYSQL的一個腳本

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

編輯:關於MYSQL數據庫
 源碼:--------------------------------------------------------------------------------#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!"
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved