1. You can install the personal Web server from add-ons \ PWS \ setup.exe on the Windows 98 installation disk,
Select the typical installation directory c: \ Inetpub \ wwwroot;
2. Software Download:
Http://www.php.net/distributions/php-4.0.0-Win32.zip
3rd. Use the winzipdecompress tool to unzip php-4.0.0-win32.zip to the PHP installation directory, for example, C: \ PHP.
Use $ php_root to replace the PHP installation directory;
For detailed installation documents in English, see the readme.txt file in the php_rootdirectory;
5. Copy the php. ini-Dist file under the $ php_root directory to the C: \ Windows directory, and copy c: \ windows \ PHP. I
Ni-Dist is renamed as c: \ windows \ PHP. ini;
6. Copy msvcrt. dll and php4ts. dll under the $ php_root directory to the C: \ WINDOWS \ SYSTEM directory. If c :\
These files already exist in the WINDOWS \ SYSTEM directory. Do not overwrite them;
7. Modify c: \ windows \ PHP. ini:
1) set extension_dir to the PHP installation directory, for example, extension_dir = c: \ PHP
2) configure the dynamic dll library to be loaded. Ensure that only the $ php_root directory can be loaded.
This version comes with these dynamic libraries: php_calendar.dll, php_imap.dll, php_ldap
. Dll, so the configuration column of the dynamic library is as follows:
Windows extensions
Extension = php_calendar.dll
Extension = php_imap.dll
Extension = php_ldap.dll
8. Run regedit Program (START-> Run, enter Regedit) and find the following path:
My computer
HKEY_LOCAL_MACHINE
System
CurrentControlSet
Services
W3svc
Parameters
Script Map
Right-click script map-> New-> string value and name it. php (Your PHP program will be suffixed with. php.
Oh, you can change it to another one. Double-click the created string value and enter the php4isapi. dll file in the key value input box.
Full path $ php_root \ php4isapi. dll, such as c: \ PHP \ php4isapi. dll;
9. Create a PHP test directory, such as D: \ myphp. In this article, replace $ myphp with this directory and open the PWS Manager (Right
Click a small icon in the status bar and click Properties). Click Advanced Configuration to add a virtual directory named $ myph.
P. In this example, D: \ myphp is used, and the alias is myphp. The access permission is read, run, and script;
10. restart the computer;
11. Write a test program phpinfo. php under the $ myphp directory (note that the suffix must be the same as the Suffix in 8). The content is
<? Phpinfo () ;?>, Then enter http: // localhost/myphp/phpinfo. php In the browser to test.
Some information about PhP indicates that it has been installed.