Abstract: I have never been familiar with php for a long time. Today, a program needs a php runtime environment. Because you only need to simply run the program, there is no need to create a LAMP environment (if you need to configure a LAMP environment, refer to my blog about PHP ), it is better to run it directly using IIS. Main Content: use IIS to run PHP program 1
Abstract: I have never been familiar with php for a long time. Today, a program needs a php runtime environment. Because you only need to simply run the program, there is no need to create a LAMP environment (if you need to configure a LAMP environment, refer to my blog about PHP ), it is better to run it directly using IIS. Main Content: use IIS to run PHP program 1
Abstract: I have never been familiar with php for a long time. Today, a program needs a php runtime environment. Because you only need to simply run the program, there is no need to create a LAMP environment (if you need to configure a LAMP environment, refer to my blog about PHP ), it is better to run it directly using IIS.
Main content:
- Run the PHP program using IIS
1. Run the PHP program using IIS
1. first download PHP. Here I download php5.2.14 (if it is a later version, php5isapi may not be found. dll, the related configuration method is temporarily ignored), it is recommended to download the zip package, you do not need to install it, during downloading, make sure to select the VC9 package instead of VC6 (this is for apache ). For example, I decompress to d: \ php-5.2.14-Win32.
2. Find php. ini-dist and change it to php. ini. Then open the file:
Find register_globals = Off
Change to register_globals = On,
Find extension_dir = "./"
Modify the path of the extension dll in your package, for example, my d: \ php-5.2.14-Win32 \ ext, to extension_dir = "d: \ php-5.2.14-Win32 \ ext"
Add extension, Set
; Extension = php_curl.dll
; Extension = php_dbase.dll
; Extension = php_gd2.dll
; Extension = php_ldap.dll
; Extension = php_mysql.dll
Remove the Semicolon ";" to enable these common extensions.
3. create a website in iis, for example, PHPTest. By default, an application pool is added to the application pool. change the NetFramework version to "unmanaged code" and the managed pipeline mode to "classic ". Then add the application ing to the website and add a script ing. The Request Path is "*. php, the executable file is D: \ php-5.2.14-Win32 \ php5isapi. dll "(depending on the directory where php is located ).
Now you can run your php site. For example, create a file named "index. php" in the root directory of the website. After "" is added ", the following interface is displayed: