Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15178043
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: Mysql/postgreSQL

2008-05-30 11:12:54

源码:--------------------------------------------------------------------------------#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!"
  
阅读(400) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~