In Red Hat Linux 9 + Apache2.0.48 + php4.3.4 + Zendoptimizer2.1.0B mysql5.0.0-0 + Tomcat5.0.16 + J2SDK1.4.2.03 integration

zhaozj2021-02-16  41

In Red Hat Linux 9 Apache2.0.48 php4.3.4 Zendoptimizer2.1.0B mysql5.0.0-0 Tomcat5.0.16 J2SDK1.4.2.03 integration

This article dedicated to the love of Linux colleagues, for beginners into the shutter! ! ! Test in Red Hat Linux 9! ! ! ! Install the software download URL:

Apache2.0.48 url http://www.apache.org/dist/httpd/httpd-2.0.48.tar.gz

PHP4.3.4 URL http://cn2.php.net/get/php-4.3.4.tar.gz/from/a/mirror

Zendoptimizer2.1.0b URL http://www.zend.com/store/getfreefile.php?pid=13&zbid=548

Tomcat5.0.16 url http://nagoya.apache.org/mirror/jakarta/tomcat-5/v5.0.16/bin/jakarta-tomcat-5.0.16.tar.gz

Mysql5.0.0-0 mysql-server-5.0.0-0.i386.rpm server mysql-client-5.0.0-0.i386.rpm

URL http://www.mysql.com/get/downloads/mysql-5.0.0-0.i386.rpm/from/pick

URL http://www.mysql.com/get/downloads/mysql-5.0.0-0.i386.rpm/from/pick

J2SDK1.4.2.03 Download SDK J2SDK-1_4_2_03-Linux-i586-rpm.bin

URL http://java.sun.com/j2se/1.4.2/download.html

Jakarta-Tomcat-Connectors-JK2-2.0.2-SRC with Apache and Tomcat Communication URL

http://nagoya.apache.org/mirror/jakarta/tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

Install mysql5.0.0-0-0

1 Install server-side # rpm -ivh mysql-server-5.0.0-0.i386.rpm --force --Nodeps

2 Install the client # rpm -ivh mysql-client-5.0.0-0.i386.rpm --force -nodeps

Show the following information

Warning: mysql-server-5.0.0-0.i386.rpm: V3 DSA Signature: Nokey, Key ID 5072E1F5 preplay ... ################################################################################################################################################################################################################## ############### [100%] 1: mysql-server #################### ################# [100%]

3 Test installation is successful [root @ mylinux local] # mysql

Welcome to the mysql monitor. Commands end with; or / g. Your mysql connection ID is 1 to server version: 4.0.16-standard type 'help;' or '/ h' for help. Type '/ c' to clear To. TYPE '/ C' To CLEAR THE Buffer. MySQL> A "mysql>" prompt appears, congratulations, successful installation! 1, database directory / var / lib / mysql / 2, configuration file / usr / share / mysql 3, start mysql in the service

Install apache2.0.48

1 #tar -zxvf httpd-2.0.48.tar.gz extracts HTTPD-2.0.48 2 #CD HTTPD-2.0.48 Enter httpd-2.0.48

3 # Configure Apache Support Dynamic Module Load #. / Configure --with-layout = Apache --prefix = / usr / local / apache --enable-module = so --enable-module = setENVIF --Nable-Module = REWRITE --with-mpm = prefork

4 #make 5 #make install

/ usr / local / apache / bin / apachectl start Starting Apache Server

/ usr / local / apache / bin / apachectl stop stop Apache server installation PHP

Install PHP4.3.4

1 #tar -zxvf php-4.3.4.tar.gz extracts PHP-4.3.4 2 #CD PHP-4.3.4 into PHP-4.3.4

3 #. / Configure --prefix = / usr / local / php --with-apxs2 = / usr / local / apache / bin / apxs --enable-track-vars --enable-debug --enable-url-incrude --enable-sockets --enable-force-cgi-redirect --enable-calendar --with-config-file-path = / usr / local / lib --with-zlib --with-freetype-dir --enable -gd-native-TTF --With-TTF --With-gdbm --with-gettext --with-iconv --with-png-dir --with-zlib --with-XML (Configuring PHP Library)

4 #make 5 #make install

6 Configure php.ini to copy php.ini-distth to / usr / local / lib / renamed pHP.ini

Change mysql.default_socket = / var / lib / mysql / mysql.sock in PHP.INI

7 Inform Apache to resolve specific extensions into PHP, let Apache will extends .PHP simply add them, each with space separation. Make the following configuration for Apache, add: /usr/local/apache/conf/httpd.conf Add:

For PHP 4: loadModule php4_module modules / libphp4.so

For PHP 5: loadModule php5_module modules / libphp5.so

AddType Application / X-httpd-php .php .phtml addtype application / x-httpd-php-source .phps usually, we also set the .phps extension to display the highlighted PHP source file

Modify AddDefaultCharset ISO-8859-1 to AddDefaultcharset GB2312 Display Simplified Chinese

8 Apache Configuration Virtual Directory Alias ​​/ MyJSP / "/ JSP /" Note To build a JSP folder

Options Indexes MultiViews

ALLOWOVERRIDE NONE

ORDER ALOW, DENY

ALLOW FROM ALL

9 and write a PHP test page info.php: The content is as follows

10 Start your apache server: / usr / local / apache / bin / apachectl Start Stops Apachectl Stop

11 Configure support for extended features, please repeat step 3

--with-config-file-path = / path (You can edit the php.ini file to modify the PHP option. If you want to put this file in another location / path is where you put the pHP.ini location)

Install ZendOptimizer2.1.0b

1 #tar -zxvf zendoptimizer-2 [1] .1.0b-linux_glibc21-i386.tar.gz decompressed after zend

2 #CD Zend 3 #SH Install.sh will prompt you to specify the path where the PHP.INI and Apache

Install J2SDK1.4.2.03

1 Double click J2SDK-1_4_2_03-Linux-i586-rpm.bin Select to run, display the protocol,

Press the D key to the end, select Y, to / root will have J2SDK-1_4_2_03-Linux-i586.rpm

2 # rpm -ivh j2sdk-1_4_2_03-linux-i586.rpm starts installation. Will show ################ [100%]

Be careful to wait until [root @ mylinux local] # appears to complete the installation.

3 JDK2SDK will be installed to /usr/java/j2sdk1.4.2_03 Edit / etc / profile Add

JAVA_HOME = / usr / java / j2sdk1.4.2_03CLASSPATH = $ JAVA_HOME / lib: $ JAVA_HOME / jre / libCATALINA_BASE = / usr / local / tomcat-5.0.16CATALINA_HOME = / usr / local / tomcat-5.0.16PATH = $ JAVA_HOME / bin : $ JAVA_HOME / JRE / BIN: $ PATH: $ HOME / BINEXPORT CLASSPATH PATH JAVA_HOME CATALINA_BASE CATALINA_HOME

Install Tomcat5.0.16

1 #tar -xzvf jakarta-tomcat-5.0.16.tar.gz decompressed, change the name Tomcat-5.0.16 copy to / usr / local / directory

2 Edit a Java to test, save Hellolinux.java to / root, pay attention to wear, join environment variables

Class Hellolinux {

Public static void main (String [] args) {

System.out.Println ("Hello Linux");

}

}

3 Use Javac Hellolinux.java to compile (you can also compile in Hellolinux.java)

Execute it with Java Hellolinux, showing Hello Linux, you have successfully installed J2SDK4 # $ catalina_base / bin / startup.sh (start service) test http://127.0.0.1:8080

# / usr / local / tomcat-5.0.16 / bin / shutdown.sh (stop service)

If the system is required to start automatic Tomcat to join: 4 in /etc/rc.d/rc.local: 4

5 Tomcat virtual directory settings conf / server.xml pay attention to add in

6 playback Tomcat has no errors, it is successful, and the test is placed in and Apache and Tomcat integration.

Install Jakarta-Tomcat-Connectors-JK2-2.0.2-SRC

1 #tar -xzvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

2 #CD JAKARTA-TOMCAT-Connectors-JK2-2.0.2-SRC 3 #CD JK / NATIVE2

4 Locate BuildConf.sh Right-click to change the permissions, select the execution

5 #. / Configure --with-apxs2 = / usr / local / apache / bin / apxs --enable-eAPI

6 #make 7 #make install 8 # If make install is unsuccessful, you need to manually release mod_jk2.so

9 #CD JAKARTA-TOMCAT-Connectors-JK2-2.0.2-SRC / JK / Build / JK2 / Apache2

10 #cp * .so / usr / local / apache / modules / copied to / usr / local / apache / modules /

11 Editor /usR/local/apache/conf/httpd.conf Add

DirectoryIndex index.html index.html.var index.jsp index.php

LoadModule JK2_Module Modules / MOD_JK2.SO

12 In / usr / local / apache / conf / construction file name to stick the following content to Workers2.Properties

# Only at beginnin. in Production UNcomment IT OUT

[Logger.Apache2]

Level = Debug

[SHM]

FILE = / usr / local / apache / logs / shm.file

SIZE = 1048576

# Example Socket Channel, Override Port and Host.

[Channel.socket: Localhost: 8009]

Port = 8009

Host = 127.0.0.1

# Define the worker

[AJP13: Localhost: 8009]

Channel = CHANNEL.SOCKET: Localhost: 8009

# Uri mapping

[URI: 127.0.0.1 / *. jsp]

Worker = ajp13: Localhost: 8009

[URI: 127.0.0.1 / *. jsp]

Worker = ajp13: Localhost: 8009

You can now test the integration, now write a directory for the for.jsp to / JSP, remembering the Apache and Tomcat

<%

INT I;

For (i = 1; i <100; i ) {

Out.println (" Hello World" in Chinese ");}

%>

Test Apache http://127.0.0.1:/myjsp/info.php Test Tomcat http://127.0.0.1:8080/myjsp/for.jsp

Apache and Tomca integrated test http://127.0.0.1:/myjsp/for.php display and test Tomcat is successful!

In the platform Win2003 Win2000Servr php4.23 Website: http://expert.9cbs.net/expert/topic/2157/2157051.xml? Temp = .1475946

Windows2000 Server and Windows 2003 Apache2.0.47 Integrated Configuration Method for Tomcat5.0.4: http://expert.9cbs.net/expert/topic/2200/2200581.xml? Temp = .3657038

If you have any questions, I will answer here in 9cbs. Thank you! ! ! Not reprint, please don't send me, thank you! ! ! Author: Weihai hair Email: shuiaaa521@sina.com

Nanjing Jiangsu Yang Susha, January 19, 2004

Copyright Notice: Please contact me and reprint it, please sure to indicate the original source and author information and this statement in hyperlink!!!

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

New Post(0)