Apache Tomcat PHP Java XML Create WAP Service

xiaoxiao2021-03-06  48

Operating system: Windosws 2000 Pro version

The software you need:

1, IIS 5.0

2, JDK-1_2_2-win.exe

3, Jakarta-Tomcat.zip

4. PHP-4.0.0-win32

5. MySQL-3.23.36-win

6. DBTOOLS-Manager-1.0.8

7. GYXML

8. Java API for XML Parsing 1.0.1

9. mm.mysql.jdbc-2.0pre5.tar

installation method:

(First in Windosws 2000 Pro version of IIS 5.0)

First, install JDK

1, double-click the JDK-1_2_2-win.exe file for installation, use the default configuration, the Default installation directory of JDK is D: /jdk1.2.2,jre's default installation directory to D: / Program Files / JavaSoft / JRE / 1.2;

2, update environment variables

Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> System Variables

Add ClassPath: D: /jdk1.2.2/lib/tools.jar; D: /JDK1.2.2/Lib/dt.jar; c: /mm.mysql.jdbc-2.0pre5; c / mm.mysql.jdbc-2.0 pre5 / mysql_1_comp.jar;

Added PATH: D: /JDK1.2.2; D: /JDK1.2.2/bin;

Second, install Tomcat

1, unzipjakarta-tomcat.zip to D: / jakarta-tomcat directory with Winzip

2, enter the D: / jakarta-tomcat / bin directory, find the startup.bat batch file, open the editor

On the line: START, add the following four lines:

Set tomcat_home = d: / jakarta-Tomcat

SET JAVA_HOME = D: /JDK1.2.2

Set classpath = d: /jdk1.2.2/lib/dt.jar

Set classpath = d: /jakarta-tomcat/lib/servet.jar

3, double-click Startup.bat to boot Tomcat server

At this time, a DOS window will appear on the screen, stopping, and some run success Tomcat and initialization information,

Certificate Tomcat runs success.

4, enter http: // localhost: 8080 /

If you can see Tomcat Version 3.1, it means that tomcat is successful.

There are some examples of JSP and Servlet, and the JSP environment is completed.

Note: The DOS window that is stopped above can't be turned off, otherwise the Tomcat server stops service (JSP file is slower)

5, the first JSP example

Turn this program as Test.jsp, put it in the D: / jakarta-tomcat / webapps / examples directory

In the browser, type http: // localhost: 8080 / examples / test.jsp

At this point, the JSP environment is built.

Third, install PHP4.0

1, extract PHP-4.0.0-win32 to D: / PHP4, copy PHP4API.DLL and PHP4TS.DLL in its directory to D: / WinNT / System 32.

2, enter the control panel => Administrative Tool => Internet Service Manager, right-click the default web site selection attribute, first select "ISAPI Filter", click Add ... ": Filter Name: PHP

Executable file: d: /winnt/system32/php4isapi.dll

After clicking "OK", add the PHP4 filter to IIS.

Then open the "Home Directory" property page, select "Configure (R) ..." and pop the Application Configuration dialog box, then select Add / Edit App Extension Maps dialog box, Fill in "D: /PHP4/php.exe% S% S", "D: PHP", pay attention to "D: PHP", note that "% s% s" above is required Otherwise, PHP4 will not work properly. (You can add PHP4, PHP3, and apply as needed)

At this point, PHP's environment is matched. The next thing is mysql

Fourth, install mysql

Run mysql-3.23.36-win, directly put it on the C drive. Copy the My-Example file under its directory to the C disk and modified to MY.

2, then install DBTools-Manager-1.0.8 directly, you can connect to the mysql database, and manage, build a table, etc.

V. Install GYXML

Different GyXML to D: / GYXML, modify the Catalina.bat file under the GYXML / BIN directory, modify the two system variables of java_home and catalina_home:

SET CATALINA_HOME = D: / GYXML

SET JAVA_HOME = D: /JDK1.2.2

Start the server:

For Windows:

In the DOS prompt, enter the C: / GyXML / BIN directory, run the Catalina Start, and the stop command is: Catalina STOP;

The system will start, the default listener port is 80, after the system is started, you can access:

http://localhost/****/index.xml

6. Install Java API for XML Parsing 1.0.1, so that Java supports XML

7. Install mm.mysql.jdbc-2.0pre5.tar, JSP even the mysql driver.

Finally, add SET PATH = D: /JDK1.2.2;% PATH% this line in C: /autoexec.bat.

-------------------------------------------------- ------------

The above software download:

[url = http://www.yw-e.com/down/jakarta-tomcat.zip] http://www.yw-e.com/down/jakarta-tomcat.zip [/ URL]

[URL = http://www.yw-e.com/down/php-4.0.0-win32.zip] http://www.yw-e.com/down/php-4.0.0-win32.zip [/ url]

[URL = http://www.yw-e.com/down/dbtools-manager-1.0.8.exe] http://www.yw-e.com/down/dbtools-manager-1.0.8.exe [/ url]

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

New Post(0)