编译APACHE+PHP+MYSQL的一个脚本_MySQL

WBOY
發布: 2016-06-01 14:12:28
原創
1249 人瀏覽過

Apache


  源码:--------------------------------------------------------------------------------#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!"
  
  
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!