Apache + MOD

zhaozj2021-02-16  55

A. Software Platform

Mandrake8.2apache 1.3.27OpenSSL 0.9.7MOD_SSL 2.8.12MOD_PERL 1.27FrontPage Extension 5.0patch-fp-apache 1.3.22 mm 1.2.1 J2SDK 1.0.1 Tomcat 4.0.1 Webapp 1.0.1 Apache :: ASP 2.50 PHP 4.3.1

B. Configuration steps

1. Copy all the packages into the / usr / src / suff / directory, and unpack. 2. Install OpenSSLCD /USR/SRC/Soft/openssl0.9.7./config -fpicno-threads make make test make install 3. Install MM CD /USR/SRC/SOFT / MM-1.2.1 ./configure -disable-shared Make 4. Install mod_ssl./configure -with-apache = / usr / src / Soft / Apache1.3.27 5. Install apache cd/usr/src/soft/apache1.3.27 cp -af ../fp-patch-apache1. 3.22 ./ Patch -p0

./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. Install 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. Install FrontPage Extension

vi /usr/local/apache/conf/httpd.conf

Change DocumentRoot's allowoverride none to all

Remove the servername #

CD /usr/src/soft/frontpgae/version5.0

./fp-install.sh

CD / usr / local / apache / bin /

cp -af httpd.orig httpd

Add the following text in /usr/local/apache/conf/httpd.conf

Options none

ALLOWOVERRIDE ALL

ORDER ALOW, DENY

ALLOW FROM ALL

8. Install Apache :: ASP

Perl-McPan -e shell

Ask if you manually configure the CPAN, select

CPAN> Install bundle :: Apache :: asp

CPAN> EXIT

CD /Root/.cpan/build/apache-asp2.50

Perl makefile.pl

Make

Make test

Make Install

Add the following text in httpd.conf

SetHandler Perl-ScIRPT

Perlmodule Apache :: ASP

Perlhandler Apache :: ASP

Perlsetvar Global.

PerlsetVar StateDir / TMP / ASP

9. Install J2SDK 1.4.1

CD / USR / SRC / SOFT /

./j2sdk-1.4.1-linux-i586.bin

Accept agreement, enter YES

Generate a J2SDK1.4.1 directory

10. Install Tomcat4.0.1

CD / USR / SRC / SOFT / CP -AF Tomcat4.0.1 / usr / local

Add the following text in the / etc / profile file

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

Start Apache and Tomcat, access http: // server ip: 8080 via the browser, see Tomcat's homepage indicates that Tomcat is successful.

11. Integrate Apache and 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

Add the following text in httpd.conf

AddModule MOD_WEBAPP.C

LoadModule MOD_WEBAPP LIBEXEC / MOD_WEBAPP.SO

WebAppConnection WardConnection Warp localhost: 8008

WebAppDeploy Examples WarpConnection / Examples / EXAMPLES /

Access http:// server ip / example in the local browser

See index.html and execute the JSP example, indicating that the configuration is successful.

I have forgotten that the specific steps of access.

If friends know, please send steps to my email zysno1@sina.com. Greatful.

12. Install 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 libPhp4.so / usr / local / apache / libexec

vi /usr/local/apache/conf/httpd.conf

Add the following in the corresponding location

LoadModule PHP4_Module Libexec / Libphp4.so

AddModule MOD_PHP4.C

AddType Application / X-httpd-php .php .php3 .phtml

转载请注明原文地址:https://www.9cbs.com/read-22119.html

New Post(0)