Experience memories of installing PHP+MYSQL on IIS
Author:Eve Cole
Update Time:2009-05-30 20:06:46
1) Do not download the Windows Installer on www.php.net. After installing it, you cannot use MYSQL and you don’t know what the problem is. It can never be fixed, that’s right. EXTention never loads. So php_mysql.dll can never enter the memory. The MYSQL_CONNET() function is never found. Never set up well. You have no idea what he did! Therefore, many programs before the emergence of PDO cannot be used.
2) So it must be done manually. Manual is king. Because we know what we want to do. Don't be lazy.
3) Download this #PHP 5.2.5 zip package [9,713Kb] - 08 November 2007
md5: a1e31c0d872ab030a2256b1cd6d3b7d1
Started manually
4) Unzip. Go to D:php, change php.ini-recommand to php.ini. Then delete the semicolon in front of extension=php_mysql.dll, then set open_short_tag=On (in order to run Discuz!), and then set extension_dir to D :phpext
5) On my computer, click the button on the right side of the mouse, properties, environment variables, and add D:PHP to the Path below. It seems that it may be to run PHP.exe
6) Open IIS6 to create a new WEB extension and add d:phpphp5isapi.dll to it
7) Create a site. There is a configuration below the home directory tab. After entering, add a php extension dll, or d:phpphp5isapi
8) Then restart windows 2003.
At this time, test that mysql_connect finally works. Let’s not talk about Call undefined function, that’s all I have to say. There is so much written above that I wrote it all in one breath, without checking whether it is correct or not. There may be something missing or something wrong, such as variable names. That's about it.
It seems that my recall ability is still good. kindness.
Mentioned in passing. The server memory was broken two days ago, which caused a blue screen overhaul of the server. Basically no data is lost. Advertise Western Digital's enterprise-class SATA2 hard drives here. The quality is good. Really good. Here I criticize Kingston's 1G memory, which breaks down too quickly.