日期:2014-05-16  浏览次数:20585 次

linux apache 安装步骤


# wget http://jp2.php.net/get/php-4.3.10.tar.gz/from/this/mirror
# wget http://sunsite.tus.ac.jp/pub/apache/httpd/apache_1.3.33.tar.gz
# tar -zxvf php-4.3.10.tar.gz
# tar -zxvf apache_1.3.33.tar.gz
# ls -l

Total 8340
   drwxr-xr-x 8 mysql games 4096 10 28 01:47 apache_1.3.33
   drwxr-xr-x 14 1003 1003 4096 12 15 02:55 php-4.3.10# cd apache_1.3.33
# ./configure --prefix=/usr/local/apache --enable-module=so \
--enable-module=rewrite --enable-module=speling

Configuring for Apache, Version 1.3.33
  + using installation path layout: Apache (config.layout)
  Creating Makefile
  Creating Configuration.apaci in src
  Creating Makefile in src
  + configured for Linux platform
  + setting C compiler to gcc
  + setting C pre-processor to gcc -E
  + using "tr [a-z] [A-Z]" to uppercase
  + checking for system header files
  + adding selected modules
  o rewrite_module uses ConfigStart/End
  + using -ldb1 for DBM support
  enabling DBM support for mod_rewrite
  + using system Expat
  + using -ldl for vendor DSO support
  + checking sizeof various data types
  + doing sanity check on compiler and options
  Creating Makefile in src/support
  Creating Makefile in src/regex
  Creating Makefile in src/os/unix
  Creating Makefile in src/ap
  Creating Makefile in src/main
  Creating Makefile in src/modules/standard# make
# make install

   +--------------------+
   | You now have successfully built and installed the      |
   | Apache 1.3 HTTP server. To verify that Apache actually |
   | works correctly you now should first check the         |
   | (initially created or preserved) configuration files   |
   |                                                        |
   | /usr/local/apache/conf/httpd.conf                      |
   | and then you should be able to immediately fire up     |
   | Apache the first time by running:                      |
   |                                                        |
   | /usr/local/apache/bin/apachectl start                  |
   |                                                        |
   | Thanks for using Apache. The Apache Group              |
   | http://www.apache.org/