Sunday, 14 June 2009

Installing PHP and configure it with MySQL and IIS in Windows platform


For a beginners it's not so easy to setup php and configure it with MySQL and IIS. When I was younger, I felt some great trouble to install of these. For this reason, i'll discull the whole process of these, so that a beginners can get some advantage with these tutorials. In this tutorial, i'll discuss the installation process only for the Windows platform. But in Mac OS X or Linux platform, the configure and many terms are almost the same. So I think every user can get some advantage with these tutorials. So lets start....


1. First to show up the files extention, click MyComputer icon on your desktop. Now from the menu bar select Tools and from the pop-up menu of Tools select Folder Options... and select the view tab. Under view tab uncheck the check box of "Hide extensions for known file types". Just like figure below:


After completing this task you can show every file with extension. Which is shown in below:


2. Downloading the latest version of zipped windows binaries form the http://www.php.net website. The zipped version should looks like this:

3.Now create a folder in the C:\ drive and name it php or php5. The directory for this folder will be: C:\php

4. Now enter into the php's zipped folder and unzip the whole files of its into the exactly C:\php directory.

5. Now in the C:\php\dev directory you'll find "php5ts.lib" file. This is a library file. Copy this file and paste it into the C:\windows\system32 directory.

6. Again in the C:\php\ext directory you'll find many *.dll files. Copy all of these files and paste it into the C:\windows\system32 directory.

7. Now in the C:\php directory copy the whole of the dll files and similarly paste it into the C:\windows\system32 directory.

8. Now in the C:\php directory you'll find the "php.ini-dist" file. Copy this file and paste it into the C:\windows directory and rename it "php.ini" and open it with notepad.

9. Press Ctrl+F and type "php_mysql.dll". After find this word remove the semicolon from the left of its, just like figure below. If you not remove this semicolon, you can not access to the MySQL server later.


10. Now from the file pop-up menu click save and then exit.

11. Restart your windows now. It must be done.

Now php is installed on your machine!!. So ready for php scripting!!. But you have to wait for php scripting because php is a server-side scripting language and it needs a web server to run its scripts. So in the next tutorial after installing IIS server we'll going to the php scripting.

Thanks for reading this tutorial.

No comments:

Post a Comment