Installing MySQL, PHP, and Apache on Win2k.
Results 1 to 6 of 6

Thread: Installing MySQL, PHP, and Apache on Win2k.

  1. #1
    AntiOnline Senior Member
    Join Date
    Oct 2001
    Posts
    514

    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]

  2. #2
    Banned
    Join Date
    Jun 2002
    Posts
    458
    I reccomend easyphp. It comes with apache and a GUI to simplify things. I'll make a tut for reference. Good tut though, maybe you could explain more on sql? Good idea for a tut though, greenies for this one.

  3. #3
    AntiOnline Senior Member
    Join Date
    Oct 2001
    Posts
    514
    Well, as I said, all I needed to do was install mySQL, and open up the mysqladmin .exe in the bin directory of C:\mySQL. Then I configured my admin user/pass useing mysqladmin. After that, it automatically started when I re-booted my server.

    Hope this helps!

    - ura
    [shadow]uraloony, Founder of Loony Services[/shadow]
    Visit us at
    [gloworange]http://www.loonyservices.com/[/gloworange]

  4. #4
    PhPTriad is a favorite of mine. Comes with Apache and MYSQL already installed. Thanks for the tutorial though.

  5. #5
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    I know this is kind of a php realm going on. But how might one setup up ASP on Apache for win32? Does apache need to be configured to run ASP or can someone just put .asp on and have it work? I'm still kind of new to web development. But ASP I hear is really similiar to VBScript and VB.
    Good Grief

  6. #6
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    Nevermind I thought I would post somthing up that I found incase anyone else had the same question. It seems it's really impossible to do this. Except sun has developed a asp called chillsoft that will allow you to run asp scripts on your apache webserver for win32. It's a very easy installation. Uses the wizard. One restart and your allowed to start your .asp work.
    Good Grief

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •