详尽的Apache1.3.27安装配置手册

  Apache+Mod_perl+Mod_SSL+PHP+Frontpage extension+Apache::ASP 安装配置手册
  
  A.软件平台
  
  Mandrake8.2
  Apache 1.3.27
  Openssl 0.9.7
  Mod_SSL 2.8.12
  Mod_perl 1.27
  FrontPage extension 5.0
  Patch-fp-apache 1.3.22
  Mm 1.2.1
  J2sdk 1.4.1
  Tomcat 4.0.1
  Webapp 1.0.1
  Apache::ASP 2.50
  PHP 4.3.1
  
  B.配置步骤
  
  1. 将所有的软件包都复制到/usr/src/soft/ 目录下,并解包。
  
  2. 安装openssl
  cd /usr/src/soft/openssl0.9.7
  ./config -fPIC \
  no-threads
  make
  make test
  make install
  
  3.安装 mm
  cd /usr/src/soft/mm-1.2.1
  ./configure –disable-shared
  make
  
  4.安装 mod_ssl
  ./configure –with-apache=/usr/src/soft/apache1.3.27
  
  5.安装apache
  cd /usr/src/soft/apache1.3.27
  cp –af ../fp-patch-apache1.3.22 ./
  patch –p0  SSL_BASE=/usr/src/soft/openssl0.9.7
  EAPI_MM=/usr/src/soft/mm-1.2.1
  ./configure –enable-module=ssl \
  –enable-shared=ssl \
  –enable-module=so \
  –enable-rule=SHARED_CORE \
  –add-module=mod_frontpage.c
  make
  make certificate TYPE=custom
  make install
  
  6.安装mod_perl
  cd /usr/src/soft/mod_perl1.27
  perl Makefile.PL EVERYTHING=1 USE_DSO=1 DO_HTTPD=1 \
  WITH_APXS=/usr/local/apache/bin/apxs
  Make
  Make install
  
  7.安装FrontPage extension
  vi /usr/local/apache/conf/httpd.conf
  将DocumentRoot 的AllowOverride None 改为All
  将servername前面的#去掉
  cd /usr/src/soft/frontpgae/version5.0
  ./fp-install.sh
  cd /usr/local/apache/bin/
  cp –af httpd.orig httpd
  在/usr/local/apache/conf/httpd.conf中加入以下文字
  
  Options None
  AllowOverride All
  Order allow,deny
  Allow from all
  

  
  8.安装 Apache::ASP
  perl -MCPAN -e shell
  提问是否手动配置cpan,选否
  cpan>install Bundle::Apache::ASP
  cpan>exit
  cd /root/.cpan/build/Apache-ASP2.50
  perl Makefile.PL
  make
  make test
  make install
  在httpd.conf中加入以下文字
  
  SetHandler perl-scirpt
  PerlModule Apache::ASP
  PerlHandler Apache::ASP
  PerlSetvar Global .
  PerlSetVar StateDir /tmp/asp
  
  
  9.安装J2SDK 1.4.1
  cd /usr/src/soft/
  ./j2sdk-1.4.1-linux-i586.bin
  接受协议,输入yes
  生成j2sdk1.4.1 目录
  
  10.安装tomcat4.0.1
  cd /usr/src/soft/
  cp –af tomcat4.0.1 /usr/local
  在/etc/profile文件中加入以下文字
  JAVA_HOME=/usr/java/j2sdk1.4.1
  Export JAVA_HOME
  CLASSPATH=/usr/java/j2sdk1.4.1/lib:/usr/java/j2sdk1.4.1/jre/lib
  Export CLASSPATH
  CATALINA_HOME=/usr/local/Jakarta-tomcat-4.0.1
  Export CATALINA_HOME
  CATALINA_BASE=/usr/local/Jakarta-tomcat-4.0.1
  Export CATALINA_BASE
  PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
  Export PATH
  启动apache和tomcat,通过浏览器访问http://server ip:8080,看见tomcat的首页表示tomcat设置成功。
  
  11.集成apache和tomcat
  cd /usr/src/soft/webapp-module-1.0.1-tc401/
  ./support/buildconf.sh
  ./configure with_apxs=/usr/local/apache/bin/apxs
  make
  make install
  cp –af ./apache1.3/mod_webapp.so /usr/local/apache/libexec

#p#副标题#e#
  在httpd.conf中加入以下文字
  Addmodule mod_webapp.c
  LoadModule mod_webapp libexec/mod_webapp.so
  WebAppConnection wardConnection warp localhost:8008
  WebAppDeploy examples warpConnection/examples/
  在本地浏览器访问http://server ip/examples/
  看见index.html,并可以执行JSP例子程序,表示配置成功。
  
  12.安装PHP
  cd /usr/src/soft/php-4.3.1
  ./configure –disable-short-tags \
  –enable-sysvsem \
  –enable-sysvshm \
  –with-mysql \
  –with-pgsql \
  –with-apxs=/usr/local/apache/bin/apxs
  make
  make install
  cp –af libs/libphp4.so /usr/local/apache/libexec
  vi /usr/local/apache/conf/httpd.conf
  在相应的位置添加以下内容
  LoadModule php4_module libexec/libphp4.so
  AddModule mod_php4.c
  AddType application/X-httpd-php .php .php3 .phtml
  
  安装全部完成!