How to add PHP support for IIS7 in Vista/Windows Server 2008
Many websites are currently written in PHP, but the server environment may not necessarily be FreeBSD. Linux, many PHP websites are running on Windows 2000, Windows 2003 and Windows Server 2008 systems. Moreover, according to many previous news reports, the efficiency of running PHP in Windows Server 2008 has increased by more than 40%.
Below, let me enter today's theme, how to add support for PHP pages under IIS7.
System Environment: Vista /Windows Server 2008
First, install IIS7 (Control Panel\\Programs and Features, Windows Features). Under the default selection conditions, remember to check ISAPI. Two options.
Once installed, the browser input http://127.0.0.1, if nothing else, there will be a welcome screen for IIS7.
Second, install PHP
Download the PHP installation package to: http://cn.php.net/downloads.php, download windows binaries here. After completing the PHP installation, I installed it in d:\\php. In this directory, find php.ini-dist, rename it to php.ini, open php.ini:
find:extension_dir = "./", replaced with extension_dir = "d:\\php"; Found: Windows Extensions: Remove the comment for each line in the module configuration below, for example:
extension=php_mbstring.dll Extension=php_gd2.dll extension=php_MySQL.dll
Save. Copy the file to your system's windows directory.
Third, create a new application pool in IIS7, the pool's .Net type is set to unmanaged.
Create a Web site, open & ldquo; read & rdquo; and & ldquo; to run scripts & rdquo; permission, after completion, this site ISAPI Filters
Next add Handler Mapping
in the above process, the D: \\ PHP \\ php5isapi.dll added to the Handler Mapping
OK, all operation is completed. Now you can test if a PHP file is working properly.
Users using Windows Server 2008 and Windows Server 2008 R2 may find this problem after the installat
When you mention ASP (ActiveServerPage), everyone will think of Windows. It is popular among WEB dev
According to a survey conducted by a foreign authority, one of the most influential factors in busin
We created a domain trust relationship in the previous article. This trust relationship occurred bet
Setting up local policy application for Win 2003
The four major faults and solutions in Windows2003
How to configure FTP7 on IIS7 and use IIS to manage credentials for authentication?
How to create a relationship between Win2003 and Win2008
Win2008 R2 new features of power management
Solution to access Windows 2008 shared resources error method
Windows Server 2003 SP2 build IDS process details
windows2008R2WEB server environment build
Talking about the startup principle of win2003 and win2008 and the fault resolution of dual startup
All-round blocking of Windows 2003 security risks
Win8 reloading and recovery system method
Help you find Win8 system control panel
You should know the Windows 8 system 15 tips
Windows 8 super detailed graphic evaluation! Teach you to play Win8 (3)
Setting specific graphics steps for high-contrast display in Windows 8 system
Experts move Windows 7 to adjust the partition function steps
The latest Win8.1/Office2013 online activation serial number summary
Microsoft launches about 300 piracy campaigns in 70 countries