How to install PHP4.04 under WIN2K--I think it is a better method
PHP4.04 is much larger than 4.0. After unpacking, it is more than 9M, and the DLL file becomes fifty A few, it turns out that Oso wrote an article "Installing PHP4 and MySQL under Windows 2000 Revealed". I also read this article to learn how to install it, but the situation has changed now. It has changed from php4.0.1pl2 to The weight of php4.04 seems to have doubled. If you still copy all the DLL files to SYSTEM32 as the original article said, it would be too much. Let's talk about the experience of installing PHP4.04.
1. I decompressed PHP4.0.4 to d:php4, then copied php.ini-dist to system32 and renamed it php.ini. As the original text said, remove extension=php_zlib.dll and other previous comments. Drop it, in my opinion, it doesn’t matter whether you take it or not. Basically, don't change it. If you are a newbie and want to test successfully quickly, then leave it like this. It is not too late to remove the comments if you need it in the future.
2. There is no need to copy PHP.EXE to WINNT, and there is no need to copy the DLLs under EXTENSIONS to SYSTEM32 and let them stay in their original place.
3. Copy all DLLs (14) in the d:php4dlls directory to SYSTEM32. I am not sure whether they must be all, but one of them, msvcrt.dll, is already under SYSTEM32, and it is not Keeps you covered.
4. Open IIS5, right-click your WEBSIT, select properties, select ISAPI filter, then add, fill in the filter name as PHP, browse the executable file and select D:php4sapiphp4isapi.dll, OK, OK. Then select the home directory, click Configuration, and add in the application configuration as, executable file: D:php4php.exe, the extension is of course .php.
Okay, try this:
php_info()
?>
What needs to be explained here is that it turns out that I was lazy and didn’t put d:php4dlls Copy the DLL in the directory to SYSTEM32 and remove the comment in front of extension=php_ldap.dll. The result is that the DLL cannot be found. No matter how you set it in the extension dir, it will not work. After copying, this phenomenon disappears.
In addition, today (2001-1-16), PHP Bamboo Fancao answered a post about not being able to find php_mssql.dll. Fancao said that you need to install the client's MSSQL before you can add php_mssql in PHP.INI. Remove the dll comment, otherwise the DLL will not be found. In my opinion, the above method can be used to solve the problem, because the extensions themselves already have the DLL.