PHP runs related environment configuration in fast-cgi, ISAPI mode under Windows

Source: Internet
Author: User

Under the IIS6 environment

MSI installation release the next step Next, and then create a new extension.

Compress Package Edition

ISAPI Mode configuration

PHP5.3.0 does not support ISAPI later, so you will need to select 5.3.0 Previous TS (thread safe) version to use this mode.

1. Add the application. The php suffix executable file path is the PHP directory under the Php5isapi.dll (5.X version for this file) file.

2. Allow PHP extensions in Web Service extensions: Create a new extension (typically called PHP) path Select the ISAPI library file under the PHP installation directory (php5.x version php5isapi.dll).

fastcgi mode configuration

1. Installing fast-cgi,http://www.iis.net/download/fastcgi

2. Edit the file: After the installation is completed, five files will be generated in the C:\windows\system32\inetsrv\ directory;

Join at the end of the Fcgiext. ini file

[Types]

php=php

[PHP]

exepath=php file path (php-cgi.exe path, including file itself)

3. add the application. php suffix executable file path to C:\windows\system32\inetsrv\fcgiext.dll file

4. Allow fastcgi handler extensions in Web Service extensions: fastcgi after the installation is complete, there will be a fastcgi handler extension, the general installation is already allowed state.

# # # # # # # #以上两部分完成一个, the IIS environment in PHP is configured, you can write a probe under the default Web site to test, create a new. php suffix file to write:

<?

Phpinfo ();

?>

Then right-click on the Web site or enter the address in the browser, if you can bring up PHP running information, the PHP environment configuration is successful.

#####

After the environment has been configured successfully, it is not enough to build a PHP site, but also need to interface with the database, then you need to configure the PHP file

php.ini file Configuration :

Extension_dir= "library file directory (generally PHP directory ext)"; Set the extension link library directory

Upload_tmp_dir= "TMP path (Create a new TMP directory in PHP directory)"; Set Cache path

Find "; Windows Extensions "This paragraph shows an extension that has a lot of. dll endings down the line, enabling the extension as needed

For example MySQL is ; Extension=php_mysql.dll, put the preceding semicolon;

IIS7 under configuration to be sorted ... Please expect


PHP runs related environment configuration in fast-cgi, ISAPI mode under Windows

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.