NETMATION
Home
Welcome
Newsletter
Job Openings
Press Releases

BUSINESS
Resumes
Computer Store

CONSULTING
Consulting
Justify
Full Time
Temps
Management
Experience
White Papers
Quote
FAQ

SOFTWARE
NCAP
Partnership
Features
Screenshots
Download
Quote
FAQ

HELP
Contact
Coming Soon
Legal
Site Map

---
Apache Setup
---

Click here!

This document is for those new to Apache/mySQL/PHP, who want a quick summary of how to install these products.

Step #1 - Install Apache
Download Apache server for Windows at http://www.apache.org/dist. Use defaults during installation, not really a concern at this time. Edit the httpd.conf file in the "/Program Files/Apache Group/Apache/Conf" directory. Replace "#ServerName new.host.name" with "ServerName localhost". You can now start and stop the Apache Server. To see if it is running enter "http://localhost" in a browser.

Step #2 - Install PHP
Download PHP for Windows at http://www.php.net/downloads.php. Extract the files into a directory called "\php4win." Make a directory to store PHP development files, "\phpdev". This is where your PHP files will reside. Rename the file ":\php4win\php.ini-dist" to "php.ini". Open this php.ini file and change the doc_root (\php4win) and extension_dir (\phpdev) lines so that they are set to the appropriate directories. Move the two files php.ini and php4ts.dll to the ":\windows" directory. If you haven't already, make sure you delete the php.ini

Edit the httpd.conf file in the "/Program Files/Apache Group/Apache/Conf" directory. Then search for the "DocumentRoot" and "" lines and change them so they are set to ":\php4win". Find the line "AddType application/x-tar .tgz" and add the following after it:

ScriptAlias /php4/ "d:/phpdev/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php4/php.exe"
You can now test PHP on Apache by putting web pages in ":/phpdev" and accessing from a browser at "http://localhost".

Step #3 - Install MySQL
Download MySql for Windows at http://www.mysql.com/downloads/. If you install MySQL in a folder other than C:\MYSQL or you intend to start MySQL on NT/Win2000 as a service, you must create a file named "d:\windows\my.ini".

[mysqld]
basedir=d:/mysql/
datadir=d:/mysql/data/

[WinMySQLAdmin]
Server=d:/MYSQL/bin/mysqld-nt.exe
user=your_user_name
password=your_password

You can now try testing a PHP/MySQL application by accessing it in a browser via localhost, such as: "http://localhost/testmysql.php". If you have any problems, you can mail them to win32@lists.mysql.com, you can subscribe to the MySQL mailing lists at http://www.mysql.com/documentation/index.html.

Step #5 - Write Netmation
Drop us a note at support@netmation.com and tell me if you succeded or failed. If you need additional information or support please don't ask me, write the companies who's software you bought, though we would be very much interested in updating any of this information for others to take advantage of.

Click here!

---

netmation.com | netmation.net | netmation.org | netmation.tv

Copyright © 1991-2005 Netmation Inc. All Rights Reserved
Site Designed and Hosted by Netmation Inc.