Windows 2003 makes iis support PHP and MySQL

  
        

On the window2003 server to debug the relationship between IIS and PHP and MYSQL, I found an article, because I have not found the reason at that time, so I wrote this basic article, I will not forget it later, huh, huh. Otherwise, the website will always display a 404 error and the page will not be found.

First, first extract the php compression package (here PHP4.3.2 as an example) into the C:\\php-4.3.2-Win32 directory, and then find a php.ini-recommended one. File, rename him to php.ini.

Second, open the file, find extension_dir=”./”, change it to extension_dir=”C:\\php-4.3.2-Win32\\extensions”; then find session.save_path= /tmp, change it to session.save_path=C:\\php-4.3.2-Win32\\sessions. (Note: At this point you need to create a sessions folder in the C:\\php-4.3.2-Win32 directory to store the session.)

Third, copy the modified php.ini file to C: In the \\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 you want to support PHP, open the property page, click on the “ISAPI Filter” tab, click “Add”, and the “Filter Properties” pops up. ” Fill in the "filter name" in the window"php”; in the "executable> executable" "C:\\php-4.3.2-Win32\\sapi\\php4isapi.dll”( As shown in the figure below, click OK.


5. Click on the “Home Directory” tab and select the “Configure” button in the “Application Settings” dialog box. In the pop-up “Application Configuration” & rdquo Click on the "Add" button in the window and fill in the "Add/Edit Application Extension Mapping" window in the "Exports" file to insert "C:\\php-4.3.2- Win32\\sapi\\php4isapi.dll”,<quo;extension"';filled in “php”.

Six, OK, everything is done, restart IIS, write a phpinfo to your page file directory. Phpinfo(); ?> 1. MYSQL installation Double-click the file to extract, double-click setup.exe to install, the default path is C:\\mysql. In c:\\mysql there is a file my-example.cnf renamed to my.cnf copy to c:\\ below. 2. phpMyAdmin installation double-click the file to extract to c:\\phpMyAdmin. Use PHPED to set the config under c:\\phpMyAdmin .inc.php3 opens, changing the <quo;require(“english.inc.php3″);” on line 65 to “require(“chinese_gb.inc.php3″);”. Now your IIS has fully supported PHP+MYSQL. Note: MYSQL does not require any settings, you can install it directly

Copyright © Windows knowledge All Rights Reserved