php-5.2.17 no VC9 version, little brother how can I install PHP on IIS

Source: Internet
Author: User
Tags vc9
php-5.2.17 there is no version VC9, how can I install PHP on IIS?
php-5.2.17 there is no version VC9, how can I install PHP on IIS?

------Solution--------------------
1, installation PHP5
Download: Http://cn2.php.net/get/php-5.2.0-Win32.zip/from/cn.php.net/mirror
Install: Unzip the Php-5.2.0-win32.zip to d:\php (can be a different directory, depending on your situation), rename d:\php\php5.ini-dist (or php.ini-recommended) to php.ini, and then open , modify the following several places:
(1) output_buffering = On
(2) extension_dir= "D:\php\ext"//PHP5. The x version is ext, formerly the Extensions folder.
(3) session.save_path= "D:\php\session_data"//session File save location, default does not have this directory, need to create a new.
(4) Remove//Let PHP support True color before extension=php_gd2.dll this line.
(5) If you want to use MySQL, it will be extension=php_mysql.dll before you remove it.
(6) Confirm that Display_errors=on//php5 is on by default.

Configuration:
(1) Copy the modified php.ini file to the C:\Windows (System path).
(2) Copy the Php5ts.dll to the C:\Windows\System32 directory. (If Win2K system, it should be copied to C:\Winnt\System32)
(3) If you want PHP to support MySQL, copy the D:\php\libmysql.dll to C:\Windows\System32.

At this point, PHP5 has installed the configuration OK.

2, configure the use of PHP under IIS
(1) "Internet Information Services (IIS) Manager, local computer->web service extension" Right-click on the "Add a new Web service extension" Connection, enter the extension (such as PHP),
and click "Add" to add the D:\php\php5isapi.dll file to the list.
Then check "Set extension status to allow" and click "OK" to see the item you just added (PHP) in the Web Service Extensions list.


(2) Internet Information Services (IIS) Manager, Web site. Then right-click the Default Web site item and select Properties to open the Default Web Site Properties dialog box.
Switch to the Home Directory tab and click the Configure button to open the Application Configuration dialog box. Then click on the "Add" button to open the "Add/Edit Application Extension Mapping" dialog box. Click the "Browse" button, select D:\php\php5isapi.dll, the extension is filled in. php. Then go all the way "OK" to return to the Default Web Site Properties dialog box, switch to the Documents tab, and click the Add button to add index.php to the list of default content documents.
Note: Point the home directory of the default Web site to the directory where you stored your PHP files and tick "script resource access", "read", "Directory Browsing", "Record Access" and "Index resources".
Finally, confirm and close the dialog box.

(3) Restart IIS.

3. Test PHP
Create a new file test.php in the main directory, as follows:
Echo Phpinfo ();
?>
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.