Install PhP5 in Windows

Source: Internet
Author: User
Decompress the PHP package using WinZip to the C:/PHP Directory, and copy the php. ini-Dist files in the directory to the C:/WINNT directory;
3. Change "C:/winnt/PHP. ini-Dist" to "php. ini" and enable and modify it:
① Find extension_dir =./And change./to C:/PHP/Ext.
② If you want to use ms SQL Server, find; Extension = php_mssql.dll, and remove ";" before extension = php_mssql.dll.
③ Find session. save_path = and set the value of session. save_path to C:/winnt/temp, that is, session. save_path = C:/winnt/temp.
④ Close PHP. ini. The PHP configuration file is modified successfully.
4. Find" Program"->" Administrative Tools "->" Internet Service Manager ", select" Default web site ", open its" properties "window, and select the" main directory "page, click the "configuration" button under "application settings", click the "add" button in the new window, and enter "C: /PHP/php.exe ", enter". PHP, and click OK ".
5. Select the "ISAPI filter" Page and click the "add" button. Enter "php" in "Filter Name" and enter "C: /PHP/php5isapi. DLL, and click OK ".

6. Select the document page and click the Add button. In the default Document Name field, enter index. PHP, click "OK", and raise it to the highest level. You can also add common PHP file names, such as "Default. phtml" and "index. php3.
7. After configuring PHP in IIS, you can use the PHP file on the server.
 

Related Article

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.