At present, many websites are written in PHP, but the server environment may not be FreeBSD or Linux. Many PHP websites run 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.
After the installation is complete, enter http://127.0.0.1 in the browser. If nothing happens, an IIS7 welcome screen will appear.
Second, Next, install the PHP
Download PHP installation package can go to: http: //cn.php.net/downloads.php, download the windows binaries. After completing the PHP installation, I installed it in d:\\php. In this directory, I found php.ini-dist, renamed it to php.ini, and opened php.ini:
Found:extension_dir = "./", replaced with extension_dir = "d:\\php";
Find: 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, the new application pool, pool type disposed in IIS7 .Net unmanaged.
Create a new website, open the "Read" and "Run Script" permissions, after completion, add ISAPI Filters to this site
Then add Handler Mapping
In the above process, add D:\\PHP\\php5isapi.dll to Handler Mapping
OK, all operations are completed. Now you can test if a PHP file is working properly.
I recently found openssl and found that the certificate is safe. Then on the Internet, I found out h
In the current Internet development, many unit users and even individual users ha
Because we dont want others to access or open some important private files, the above permission set
1. View the data disk before using the partition and formatted data disk, use the “df –h” comm
IIS W3SVC service due to performance counter error and crashed
APMServ prompts "Apache startup failed, please check related configuration" solution
Apache server configuration Web page access permissions
What are the main indicators of the purchase server?
How to unlock the automatic lock of Win2003?
How to build a WAP website on IIS
Add php and mysql commands to environment variables under linux system
The advantages and disadvantages of CDN acceleration and the difference between two-line server
How to check and troubleshoot network problems through DNS technology?
Modify the parameters to solve The FastCGI pool queue is full error
Tomcat startup error in linux: java.net.BindException: Permission denied :80
Chrome can't get online after upgrading Win8.1
Little-known Win8 system PIN creation skills
What is the difference between Windows 8.1 Professional, Standard and Core?
Solve the WIN7 right-click menu and lose the "new BMP image"
Microsoft anti-piracy black screen solution
Win10 system has been prompted "power surge on the USB port" how to solve?
Talking about the media player under Linux (on)
Windows Mobile 7 will include the mobile version of IE7 browser
Win7 creation system recovery disc function
What should I do if the Win8 system restarts after blue screen or blue screen?