Home >Backend Development >PHP Tutorial >How to install PHP + MYSQL on win2000_PHP tutorial
Using IIS, the software packages for php4 and mysql are php-4.0.1pl2-Win32.zip, mysql-3.23.19-beta-win.zip.
windows2000(p) + IIS 5.O
1: Install mysql
after setup all is ok but run: C:mysql inmysqld-nt.exe --install "Program" under the "Start" button ” => “Management Tools” => “Services”, find the “mysql” service and start it; mysql setup ok!
2: Install php4
Extract to c:php4, and then all dll files in the directory Copy to c:windowssystem32 (package subdirectory), do not overwrite the existing dll file; then copy the two files php.exe and php.ini-dist in the directory to c:winnt; copy c:winntphp.ini Rename -dist to php.ini, open it, find; Windows Extensions, remove the ";" before extension=php_zlib.dll and extension=php_ldap.dll. Modify extension_dir = ./ to extension_dir = c:windowssystem in [mysql ] column and modify
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
Open "Programs" under the "Start" button => "Management Tools" =>" Internet Service Manager", select "Default web site" and open its "Properties" window. Under the "Website" page, change the "IP Address": the IP address of your machine, for example: 192.168.0.29)"; the "TCP Port" is "80".
Then, select the "Home Directory" page, click the "Configure" button under "Application Settings", click the "Add" button in the new window;
Enter "C:WINNTphp.exe %s %s" in "Executable File" , enter ".php" in "Extension", click "OK"
Enter "C:WINNTphp.exe %s %s" in "Executable File", and click "Extension". Enter ".php3" and click "OK"
(Support for PHPADMIN)
Next, select the "ISAPI Filter" page and click the "Add" button; enter "php" in the "Filter Name". ", enter "C:WINNTsystem32php4isapi.dll" in "Executable File", click "OK".
Click the "Add" button; enter "php3" in "Filter Name", click "Executable File" "Enter
" C:WINNTsystem32php4isapi.dll" and click "OK".
Then, select the "Document" page and click the "Add" button; enter "index.php" in the "Default Document Name" , click "OK"
3: Install phpadmin