How to configure php____php under IIS

Source: Internet
Author: User

1 2 3 4 5 6 7
There are 4 major steps to configuring PHP under IIS. Steps/Methods1 Download the Windows PHP installation package first. The package is then decompressed to C:\PHP. After completing the steps above, rename the Php.ini-dist file in the C:\php directory to php.ini and copy it to the C:\Windows directory.
Use Notepad to open the C:\Windows directory php.ini file php.ini find register_globals = off to change off to on.
Then find Extension_dir = "./" "./" in the./Change into PHP in the location of ext, such as "C:\php\ext." Finally, the PHP directory under the Php5ts.dll copy to the C:\WINDOWS\system32 directory. This completes the installation steps for PHP.
2 Set IIS to support PHP
Add a new Web extension service. By
Start → programs → administrative tools → Internet Information Services (IIS) Manager opens IIS Manager. Select Web service extensions → add a new Web service extension. Add: Php directory under the Php5isapi.dll, Name: PHP settings extended state to allow: √. Select OK when finished. Add an ISAPI filter. By
Internet Information Services (IIS) Manager → web site → properties → ISAPI filter → add filter name: PHP executable: PHP directory php5isapi.dll. Add a PHP mapping file.
Select Internet Information Services (IIS) Manager → web site → default Web site → properties → home directory → configuration map → add executable: Php directory Php5isapi.dll extension:. php. Add the first page default file. Select Internet Information Services (IIS) Manager → web site → default Web site → properties → home directory → documents. Add index.php first file.
3 Set relevant permissions
Set PHP folder permissions. Open the PHP folder and add the Everyone and IUSR and IWAM user rights. View related information Just add the IUSR user right, but I did it myself. If you do not join the Everyone user, execution will not succeed. If the setting is wrong, please correct me. Because joining everyone does not guarantee security. Set Web site folder permissions. Specific settings as described above. Just the folder path is not the same.
4 test
Restart IIS.
View the PHP home file. Test the page. Enter the IP address of this computer in the browser.

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.