How to build an IIS + PHP + JSP + MySQL Environment

Source: Internet
Author: User

The software version I used is as follows:

IIS6.02003 built-in)

Mysql-noinstall-5.1.35-win32.zip

Php-5.2.10-Win32.zip

Apache-tomcat-6.0.20.zip

Isapi_redirector2.dll (JSP file used to connect to IIS)

Mysql-connector-java-5.1.7-bin.jar (jSP file connecting to mysql)

I use a ZIP decompressed version without installation.

1. Install MYSql:

1.decompress mysql-noinstall-5.1.35-win32.zip to disk D: \ mysql-5.1.35-win32

Create a my. ini file in D: \ mysql-5.1.35-win32 with the following content:

3. place the mysql-connector-java-5.1.7-bin.jar (the class package connecting to mysql) in any location, I put it in the D: \ tomcat-6.0.20 \ mysql-conn \ directory, and then configure classpath based on where you put it.

4. Open the command line Prompt window -- enter the Tomcat installation directory -- enter the bin directory -- Enter: service. bat install and press Enter.

5. I saved isapi_redirector2.dll to the directory in the D: \ tomcat-6.0.20 \ connect-to-iis \ folder ).

6. Create a workers2.properties file under the conf directory under the Tomcat installation directory, and copy the following section to save it.

7. Create jk2.properties in "D: \ tomcat-6.0.20 \ conf" with the content request. tomcatAuthentication = false

8. Create an iis. reg file with the following content (Note: Change the involved Tomcat path to your Tomcat path ):
Windows Registry Editor Version 5.00

9. right-click on the default website and choose "properties". In the displayed dialog box, select "ISAPI filter" and click "add". Set the Filter Name to jakarta, enter the absolute path of your isapi_redirector2.dll In the executable file." Click OK to close the property page. Right-click "default website" and choose "New"> "virtual directory". Enter jakarta as the alias. Next, select the directory where your isapi_redirector2.dll is stored as the path. D: \ tomcat-6.0.20 \ connect-to-iis.

10. For windows2003 iis6, you also need to add web service extensions. Select isapi_redirector2.dll as the file and set it to allow.

11. configure server. xml to set the root directory of the tomcat jsp environment.

After the preceding settings, the ASP + PHP + JSP powerful web environment is successfully configured.

  1. Analysis on CGI supported by jsp http Server
  2. Use JSP pages to generate PDF reports
  3. Step for customizing JSP labels
  4. Detailed test of JSP containers
  5. Describes the following features of jsp http Server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.