Graph tutorial for configuring PHP + MySql in IIS (Full Version) (zz)

Source: Internet
Author: User
Http://www.netbei.com/Article/zz7/s1/200505/3493.html
There are a lot of tutorials on PHP configuration under IIS on the Internet, but they are some very rational things. I will sort out this tutorial from it.
For reference convenience, we can share with you any questions. If there is anything wrong, please correct me ..

The following tutorials are all implemented in Windows 2000. For other systems, see modify them,

Operating System Directory: C: \ winnt
Default PHP installation directory: C: \ PHP
PHP version: PhP 4.3.10: http://www.php.net/downloads.php (Windows binaries)
MySQL version: mysql-4.0.22-win: http://dev.mysql.com/downloads/
Zend: Zend optimizer v2.5.5: http://hn.51zz.com/soft17/ZendOptimizerWindows-i386.exe

First, extract the PHP compressed package to the C: \ PHP Directory,
First, change PHP. ini-Dist to PhP. ini.
Then copy PHP. ini and php.exe to the WINNT directory...
Copy php4ts. dll and php4isapi. dll (in the SAPI directory) to the WINNT/system32 directory ..........

To enable your PHP to support more modules, open PHP. ini in notepad and search extension_dir to change the value./to c: \ PHP \ extensions.
 

Then search; Windows extensions opens the following extension modules, as long as the previous ones are removed... but some modules are not supported ..

Create a PHP program test directory under IIS, such as D: \ Web.
In Service Manager, right-click "Default web site-> New-> site", alias: Web, actual path: D: \ Web
You must have the permission to read, run, and browse scripts;

Add a PHP filter to the ISAPI reseller of IIS.
 

PHP has two running environment modes...
But they are all added from here.
 

 

1. If you want to use the ISAPI mode, Run "C: \ winnt \ system32 \ php4isapi. dll" in the main directory of IIS to modify the executable path.
 

 

If you want to use CGI/FastCGI mode, first search for CGI. force_redirect = in PHP. ini to remove the previous; number and change the value to 0 (the default value is 1)

Then, modify the executable path in the main directory under IIS: C: \ winnt \ php.exe
 

Related Article

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.