System requirements:
The hardware can start the operating system.
Win2k, winxp, or win2003 operating system
Preparations:
List of required software: (this configuration includes the following software versions)
1. Apache_2.0.47-win32-x86-no_ssl (apache web server)
2. Php-4.3.3-win32 (php parser)
3. Mysql-4.0.12-win (mysql database)
4. J2sdk-1_4_2-windows-i586 (java environment)
5. Jakarta-tomcat-5.0.9 (tomcat jsp parsing server)
6. resin-3.0.3 (resin jsp parsing server)
7. mod_jk_1.2.5_2.0.47.dll (integrating apache tomcat plus)
8. mm. Mysql-2.0.4-bin.jar (jsp access to the mysql file)
Start Installation:
I. apahce php mysql installation and configuration
1. Install apache_2.0.47-win32-x86-no_ssl, the default installation path of the program is: c: apache2program filesapache group, you need to modify its installation path to: c:
(You can also modify the configurations without modification ).
2. after the installation is complete, the apache service is automatically loaded. Open the browser and browse: http: // localhost. The apache welcome page appears. (in this step, change the file "index.html.en#" in the c: apache2htdocsdirectory to" index.html "for display ); if an exception occurs in this step, check the installation source file and reinstall it.
3. Install the php-4.3.3-win32, the php file downloaded in general is a free installation of compressed package, unzip to c: php can be.
4. Configure php and apache to parse the php program.
Php configuration: Rename "php. ini-dist" in the c: php directory and copy it to c: windowssystem32 (win2k Directory: c: winntsystem32)
Apache configuration:
C: apahce2confhttpd. conf
Httpd. conf
D. Add the following statement at the end of the configuration file to support the php program:
5. Restart the apache server and write the following statement in the editor:
<?
Phpinfo ();
?>
Save the file name as "test. php" to the c: apache2htdocs Directory, open the browser, and browse: http: // localhost/test. php. If the php basic information appears, the configuration is successful. The installation and configuration will be successful once according to the preceding instructions.
6. Install the mysql-4.0.12-win, always Press "next" to install successfully, and then execute "winmysqladmin.exe" in the c: mysqlbin directory, the initial information of mysql appears, indicating that the installation is successful.
7. The php connection to mysql is skipped here. Generally, there is no problem.
Here you can take a rest and prepare for the following long process ......
II. Install jdk and tomcat
1. Install j2sdk-1_4_2-windows-i586, jdk must be installed before tomcat and resin, the default installation path can be.
2. Install jakarta-tomcat-5.0.9, the default installation path is OK.
3. Copy the mm. Mysql-2.0.4-bin.jar file to c: j2sdk1.4.2lib and c: tomcat 5.0 commonlib
4. Set the environment variables (desktop> My Computer> right-click and choose Properties> Advanced> environment variables). All the settings are in the system variables bar.
Create-> variable name: java_home
-> Variable value: c: j2sdk1.4.2
Create-> variable name: tomcat_home
-> Variable value: c: tomcat 5.0
Create-> variable name: path
-> Variable value:.; c: j2sdk1.4.2bin; (The preceding ".;" must exist)
Modify and add the environment variable classpath (if this variable name is not available, create a new one)
-> Add the variable value:.; c: j2sdk1.4.2libdt. jar; c: j2sdk1.4.2libtool. jar;
C: j2sdk1.4.2libnetcomponents. jar;
C: j2sdk1.4.2libmm. Mysql-2.0.4-bin.jar;
C: tomcat 5.0 commonclasses;
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