|
-
June 30th, 2002, 01:02 AM
#1
Installing MySQL, PHP, and Apache on Win2k.
Well, I saw the tuts those guys had posted, and I decided to write a tut on my experiences with PHP, MySQL, and Apache on Win2k.
First off: You need to get the software. All 3 applications are free of charge and availible at the following websites:
Php - www.php.net
mySQL - www.mysql.org
Apache - www.apache.org
I downloaded all 3 of the applications, and chose to install Apache first.
The installation was an exe file and quite simple to install.
Next, I unzipped the PHP files into C:\php. From there I could start to work with the files.
Finally, I installed mySQL into C:\mysql.
And finally, I was ready for the real work.
**Configuring Apache**
First, I opened the httpd.conf file in the apache conf directory. This file stores the configuration for the Apache web server. There I edited it in several places to be able to recognize and use the PHP. Here are the lines I added to httpd.conf.
LoadModule php4_module C:/php/sapi/php4apache.dll
AddModule mod_php4.c
DirectoryIndex index.php index.htm index.html (I added index.php in)
AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
**Configuring PHP**
First thing I did was copy php4ts.dll from the C:\php directory to C:\WINNT\System32. Second, I copied the mibs directory in C:\php to C:\usr.
And lastly, I opened php.ini-recommended, edited it to my configuration, and placed it into the C:\WINNT directory. I set the doc_root to my Apache htdocs directory.
**Configuring mySQL**
Finally, I simply browsed to C:\mysql\bin directory and opened up the mysqladmin proggie. From there, I used their built in GUI manager to set my admin password on the database.
**Final Notes**
If I have missed something, (or messed something up) let me know by PM or otherwise (IRC, ect.) This worked for me. 
Hope this helps everyone!
- ura
[shadow]uraloony, Founder of Loony Services[/shadow]
Visit us at
[gloworange]http://www.loonyservices.com/[/gloworange]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|