javascript hit counter Web World: Installing PHP and MySQL on Windows NT
Nikhil Sheth

Web World

This site is for php , mysql , flash,.... Inshort for any web related stuff

Friday, February 04, 2005

Installing PHP and MySQL on Windows NT

This is a brief guide to installing PHP (a server-side web page scripting language) and MySQL (a popular relational database system) on the NT platform.

Important Before installing PHP and MySQL on Windows NT, you must logon as a user with administrator privileges.


You need to download two files to install PHP for Windows (and you must have some way of unzipping "zip" compressed files (e.g. Winzip).

  1. Go to
  2. (Select a mirror site close to you)
  3. Click on the 'Downloads' link.
  4. Download the zip package file (currently "PHP")
  5. Also download the installer (currently "PHP 4.1.1-installer.exe")

Unzip the zip file to a folder (e.g. C:php) put the "PHP 4.1.1-installer.exe" file in the same folder and double click it to run it. It will install it just like a normal piece of Windows software - Just follow the onscreen instructions.

After installing you need to configure the "php.ini" file which needs to be saved in C:Windows. There will be an example one given to you in your php installation folder which is ideal to use. (It only needs changing if you install it in a different folder or want non-default options).

Note You can see some (old) instructions for installing PHP on Windows at:


Go to and click on the 'Downloads' link. Go for the stable version, Scroll down to the Windows Downloads section and click on the link to download the zip file.

Extract this to a folder (e.g. C:MySQL) and then double click on the "Setup.exe" file to install.

That's it!

Make sure the web server is running and your PHP files are in the web publishing directory for them to work as intended. To run the MySQL server, create a shortcut to the "winmysqladmin.exe" in the folder C:mysqlbin (this may get generated automatically but on my installation it didn't!) and place it in your start menu or on your desktop. This will start and stop your MySQL server when required.


Post a Comment

<< Home