>  기사  >  데이터 베이스  >  编译APACHE+PHP+MYSQL的一个脚本_MySQL

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

WBOY
WBOY원래의
2016-06-01 14:12:281246검색

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!"
  
  
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.