Results 1 to 2 of 2

Thread: How to setup IIS 7 for PHP

  1. #1
    Join Date
    Jun 2009
    Posts
    230

    How to setup IIS 7 for PHP

    It is right that PHP can be use to write lot of good applications. Some of them are very good and you want to use the same on Windows. Especially if the internal portal runs on Windows, but on the Unix machine to spin the external site of the company then you can save on infrastructure and deploy a Windows server and another external site.

    Configure IIS 7 with PHP & MySQL on Windows Vista
    • The first step is now to set up IIS on Windows Vista. For that go into the Control Panel. Then look for installing additional windows computer. You can check under Program and function where you can get a link of Windows features.
    • It is important that the application development features, the ISAPI extension is enabled. Click ok and IIS is installed.
    • I prefer to use here Windows Vista Ultimate x64. The choice of operating system in your choice and of course the PHP version you want for your system. Get the downloads and place the contents of the archive install in a suitable place. I will recommend to put in C: / php.
    • Now configure the php.ini as per your meed. You can also use the template file located in c: / php / php.ini-dist. You will need to copy this in the root directory of Windows. Rename the file and remove –dist.
    • You have to copy paste the php.ini codes in this file. Those you can found from the official site of php. Just right click and choose run as administrator. Open this with Notepad.
    • Search for the line [; extension = php_mysql.dll]. Here you can find the list of full extensions. Here you can on your choice can unlock your modules, depending on what you need. For the MySQL-operation, you can remove the colon before extension. Now save the file, which should work with administrator rights. You can also make changes after sometime if you want.
    • Copy the files in System32 folder of Windows Vista. Go in PHP directory C: / php / ext / php_mysql.dll and copy files from it to c: / windows/system32. You have to do the same with C: / php / libmysql. Now to setup IIS for PHP you will need to run IIS (inetmgr.exe). Type this in Windows Run box.
    • Double-click on the Handler Mappings. At the right side click on Add script assignment. When you click on this it will open you a window with three input fields, those are Request path:, *. Php and Executable:. You have to configure the PHP that you had installed in your system here. The executable location is c: / php/php5isapi.dll. Click OK and give Yes.
    • Now only thing is pending is MySQL. The installation is normal and you can configure this as an service. If all is done well then your php file can communicate with the SQL server easily.
    • You will need to fool here some basic settings. By the Context Menu on your web site go in Advance Settings. Form here you have to specify the path of your folder where the scripts is stored. Then look for handler mapping. Check Standard Document for index.php file. Go to Search Directory here and choose ISS Manager.

  2. #2
    Join Date
    Jun 2009
    Posts
    230

    Re: How to setup IIS 7 for PHP

    PHP Setup for Windows 7
    • First download PHP from its official website and then unpack it wherever you want.
    • Now create a new website in IIS to install and configure PHP.
    • Then access the IIS Manager from Start> Control Panel -> Administrative Tools -> Internet Information Services (IIS) Manager.
    • On the left we have the servers, open the branch and right-click Web Sites, select Add Web Site, enter the data and accept. Once we have the new website we will set up PHP.
    • If you put up the website we created in the middle are several icons, double click on Handler Mappings, once in this option press the right button Add Script Map and put the data from PHP (must use dll php5isapi.dll) accept and reboot.

Similar Threads

  1. Replies: 3
    Last Post: 11-01-2014, 09:54 AM
  2. Replies: 1
    Last Post: 25-09-2012, 06:37 PM
  3. Replies: 7
    Last Post: 05-08-2010, 06:03 AM
  4. Replies: 3
    Last Post: 01-07-2009, 03:20 PM
  5. Replies: 4
    Last Post: 23-04-2009, 09:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,925,133.28036 seconds with 17 queries