Windows + IIS environment to configure php 5.3.3 method in Fastcgi

  

Need to configure PHP under IIS6.0, because php 5.3.3 no longer supports isapi configuration, so need to use fastcgi configuration, share below Take a look at my configuration process.

Still feel that 5.2 and the previous version configuration is more convenient, after using 5.3 configuration, my apache actually hangs, I do not know where the problem is, did not find a solution, and finally only ghost restore. The first step: iis6.0 environment configuration, not much to introduce here. The second step: download the php5.3.3 windows compression version: php-5.3.3-nts-Win32-VC9-x86.zip 1, download address: http: //windows.php.net/download/, select VC9 x86 Non Thread Safe. For PHP version instructions 2. Unzip php-5.3.3-nts-Win32-VC9-x86.zip to D:\\PHP 3. Modify PHP.ini

extension_dir = “D:\\php\\ Ext” Point to the path where the php folder is placed “php_*.dll” file magic_quotes_gpc = On If it is Off, be sure to open it to On, this is an important step to prevent sql attacks! Version 5.0 has defaulted on register_globals=Off to register_globals=On to make the global variable valid; short_open_tag =Off, change off to On, here can generally solve the problem of running blank when installing Discuz! Forum
< Then look for the following string and remove the semicolon before the code. Extension=php_mbstring.dll If you don't choose this, you will get a red prompt with phpMyAdmin extension=php_dba.dll extension=php_dbase.dll extension=php_filepro.dll Optional extension=php_gd2.dll Support for GD library, generally drop extension=php_imap.dll Optional extension=php_ldap.dll extension=php_mysql.dll Support for MySQL

Next, some file uploads and memory usage limits have been modified: memory_limit = 20M memory capacity post_max_size = 20M flash capacity upload_max_filesize = 20M attachment capacity < Br>

Step 3: Download and install Microsoft FastCGI Extension for IIS 5.1 and 6.0 1. Download address: http://www.iis.net/download/fastcgi http://download.microsoft.com/download/E /0/C/E0C0709A-66E5-4113-9A6C-A5F65BF6717D/fcgisetup_1.5_rtw_x86.msi 2. Install fcgisetup_1.5_rtw_x86.msi 3. Configure fcigext.ini (in the %WINDIR%\\system32\\inetsrv directory) in fcigext.ini Add the following at the end: [Types] php=PHP [PHP] ExePath=D:\\php\\php-cgi.exe (PH P directory) 4, configure FastCGI extension to work with PHP Right click on "website" to select "property", click the "home directory" option, click the "configure" button, click & rdquo; add & ldquo ; button, click & browse; browse “ look for fcgiext.dll in %WINDIR%\\system32\\inetsrv. In the extension, type .php , action selection & rdquo; limit to “, enter & rdquo; GET, HEAD, POST & ldquo;. Confirm & rdquo; script engine & ldquo; & & quoquo; check whether the file exists /ldquo; whether to choose, if not selected, please select. Once you have confirmed it, click “OK”.

Step 4: Write a simple step to test if PHP FastCGI is working properly. Create a test.php file in the C:\\Inetpub\\wwwroot directory, open Test.php, and fill in the following: <?php phpinfo(); ?> Save Test.php, restart IIS, and enter it in the browser address bar. Http://localhost/Test.php See if it is correct.

Copyright © Windows knowledge All Rights Reserved