Install_&_Configure_Apache_With_PHP,_JSP_and_MySQL_on_Windows_XP_Pro(1).pdf

(1144 KB) Pobierz
Microsoft Word - how2install_apache_w_php_jsp_support.doc
Install & Configure Apache with PHP,
JSP and MySQL on Windows XP Pro
Jeff Lundberg – jeff@jefflundberg.com
This is a quick guide to install and configure the Apache web-server with PHP and JSP support
on a Windows XP Pro machine. Let me know if this helps you out! Feedback is appreciated.
This is my first “published” guide. I made it for my own reference. Why not share?
Table of Contents
Install & Configure Apache with PHP, JSP and MySQL on Windows XP Pro ................................ 1
Download the Components.......................................................................................................... 2
Install Components ...................................................................................................................... 3
Apache ..................................................................................................................................... 3
PHP .......................................................................................................................................... 9
JSP ......................................................................................................................................... 11
MySQL.................................................................................................................................... 21
Resources .................................................................................................................................. 28
Versions used:
Apache
2.0.39
PHP
4.2.1
Tomcat
4.0.4
j2sdk
1.4.0.01
MySQL
3.23.51
MyODBC
2.50.39
PHPMyAdmin
2.2.6
Change Log:
2002/08/01
Changed workers.properties file – the ajp14 stuff was removed
Modified php.ini. Changed the following:
include_path = ".;c:\php\includes"
session.save_path = C:\Temp
session.cookie_path = \
2002/07/31
Modified workers.properties file – some paths were for older versions of Tomcat
2002/07/26
Modified step 5 of JSP install - hardcoded the Tomcat
configuration into the Apache httpd.conf file.
Also added MySQL installation instructions.
77044135.003.png
Download the Components
Before you can begin, you must first download all the required components. The components
used in this tutorial are listed below. You may want to download the latest versions. The
versions used in the tutorial are listed.
Apache Web Server
http://httpd.apache.org/
http://httpd.apache.org/dist/httpd/binaries/win32/
apache_2.0.39-win32-x86-no_ssl.msi
PHP
PHPWin32Binaries
http://www.php.net/
http://www.php.net/downloads.php
php-4.2.1-Win32.zip
PHP > Apache connector
http://FReemIRC.com/miki/php4apache2.dll
or http://Rafigh.com/miki/php4apache2.dll
or http://IRan4You.com/miki/php4apache2.dll
php4apache2.dll
JSP
Tomcat( http://jakarta.apache.org/site/binindex.html )
jakarta-tomcat-4.0.4.exe
mod_jk
http://www.acg-gmbh.de/mod_jk/
mod_jk.dll
Java
Download the latest Java SDK (We used Java 2 Standard Edition - J2SE)
http://java.sun.com/
http://java.sun.com/j2se/1.4/download.html (get the SDK, not JRE)
j2sdk-1_4_0_01-windows-i586.exe
MySQL
MySQLDatabase
http://www.mysql.com/downloads/mysql.html
Download the latest stable release for Windows
mysql-3.23.51-win.zip
MyODBC
http://www.mysql.com/downloads/
Download the latest stable release of MyODBC for WinXP
myodbc-2.50.39-nt.zip
PHPMyAdmin
http://www.phpmyadmin.net/
Download the latest stable release of PHPMyAdmin (.php files)
phpMyAdmin-2.2.6-php.zip
Install Components
Now that you have the necessary files, you can begin the installation process. We will install
Apache, PHP, then the Java SDK and Tomcat.
Note to Windows2000 users:
This guide should work with Windows2000 as well. Remember to replace C:\WINDOWS with
C:\WINNT anywhere in this document.
Apache
1. Run apache_2.0.39-win32-x86-no_ssl.msi
77044135.004.png
2. Choose “Run as a service for All Users – Recommended” when prompted.
77044135.005.png 77044135.006.png
77044135.001.png 77044135.002.png
Zgłoś jeśli naruszono regulamin