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).
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: http://www.e-gineer.com/instructions/install-php3xx-for-iis4x-on-windowsnt.phtml
Go to http://www.mysql.com and click on the 'Downloads' link. Go for the stable version, (currently v3.23.47). Scroll down to the Windows Downloads section and click on the link to download the zip file. (As said, currently: 'mysql-3.23.47-win.zip')
Extract this to a folder (e.g. C:MySQL) and then double click on the "Setup.exe" file to install.
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.
|Discuss on Forum | More Tutorials »|