Introduction: This is a detailed page for Windows hosts to support PHP and MySQL in IIS. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 324015 'rolling = 'no'>
First, the PHP compressed package (php4.3.2 here for example) decompress to c: \ php-4.3.2-Win32 directory, and then find a named PHP. ini-recommended file, rename it PHP. ini.
2. open the file and find extension_dir = ". /", change it to extension_dir =" C: \ php-4.3.2-Win32 \ extensions "; then find the session. save_path =/tmp and change it to session. save_path = c: \ php-4.3.2-Win32 \ sessions. (Note: Now you need to create the sessions folder under the c: \ php-4.3.2-Win32 directory to store the session .)
3. Copy the modified PHP. ini file to the C: \ WINNT directory, copy the php4ts. dll file under c: \ php-4.3.2-Win32 to the C: \ winnt \ system32 directory.
4. Open "Internet Service Manager", select the site that you want to support PHP, open the properties page, click the "ISAPI filter" tab, and click "add ", fill in PHP in the filter name in the pop-up Filter Properties window; fill in c: \ php-4.3.2-Win32 \ SAPI \ php4isapi In executable files. DLL, and click OK.
5. Click the "home directory" tab and select "application ".ProgramIn settings, click Add in the displayed application configuration window, fill in c: \ php-4.3.2-Win32 \ SAPI \ php4isapi In executable files in the Add/edit application extension mappings window that appears. enter "DLL" and "extension" in "php" (as shown in ).
Okay, everything is done. Restart IIS and write a phpinfo file under your page file directory.
<? PHP
Phpinfo ();
?>
1. Double-click "mysqlinstallation" and double-click "setup.exe". The default path is "C: \ mysql.
In C: \ mysql there is a file my-example.cnf renamed my. CNF copy to c: \ below.
2. Double-click phpMyAdmin Installation File and decompress it to C: \ phpMyAdmin.
Use phped to configure c: \ phpMyAdmin. inc. open php3 and set "require (" English. inc. change php3 ");" to "require (" chinese_gb.inc.php3 ");".
Now your IIS fully supports PHP MySQL
Note: MySQL can be directly installed without any configuration.
More articles about "enabling Windows hosts to support PHP and MySQL in IIS"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/324015.html pageno: 15.