IIS under PHP fast three platform source configuration environment requirements

Source: Internet
Author: User

IIS under PHP fast three platform source configuration environment requirements

recently set up PHP-enabled Web pages under Windows Server 2003 R2 Enterprise Edition, previously set up under Windows for Apache and PHP (see Http://aqiulian. COM). But this time because the size of the installation package only let IIS support PHP (if you do not understand the Penguin: 212303635), the detailed steps are as follows. First, install PHPDownload the PHP installation package for Windows first on the Emirates source forum. The package is then decompressed to C:\PHP. after completing the above steps, rename the Php.ini-dist file in the C:\php directory to php.ini and copy it to the C:\Windows directory. Open the C:\Windows directory with Notepad php.ini file php.ini Find register_globals = off to change off to on.   Find Extension_dir = "./" bar./"in the./change to the location of the ext in PHP, such as" C:\php\ext ". As shown in. Finally, the PHP directory under the Php5ts.dll copy to the C:\WINDOWS\system32 directory. Complete the installation steps for PHP at this point. second, set IIS to support PHP Add a new Web extension service . Press  Start → programs → administrative tools → Internet Information Services (IIS) Manager open IIS Manager. Select Web service extensions → add a new Web service extension. Add: Php directory php5isapi.dll, Name: PHP set extension state to allow: √. Select OK when you are finished. As shown in. Add an ISAPI filter . Press  Internet Information Services (IIS) Manager → web site → properties → ISAPI filters → add filter Name: PHP executable: PHP directory php5isapi.dll. As shown in. Add a php mapping file .   Select Internet Information Services (IIS) Manager → web site → default Web site → properties → home Directory → configure mappings → add executable: Php directory Php5isapi.dll extension:. php. As shown in. Add home default file . Select Internet Information Services (IIS) Manager → web site → default Web site → properties → home directory → documents. Add index.php Home file. as shown.    third, set the relevant rights Set PHP folder permissions . Open the PHP folder and add the Everyone and IUSR and IWAM user rights. View related information Just add IUSR user rights Yes, but I personally tried. If you do not join the Everyone user, the execution is unsuccessful. If the setting is wrong, please correct it. Because joining everyone does not guarantee security. As shown in.    Set Site folder permissions . Specific settings as described above. Only the folder path is different. See.    Iv. Testing Restart IIS.    View the PHP home page file. as shown in.       test the page . Enter the IP address of the computer in the browser. As shown in.

IIS under PHP fast three platform source configuration environment requirements

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.