Install PHP4.0 official version on PWS. 1. you can install PersonalWebServer from add-onspwssetup.exe on the Windows 98's installation disk. select the typical installation directory C: Inetpubwwwroot; 2. software download 1. you can install the Personal Web Server from the add-ons \ pws \ setup.exe installation disk of Windows 98,
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 the 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
And then enter http: // localhost/myphp/phpinfo. php in the browser to test.
Some information about php indicates that it has been installed.
Install the Personal Web Server in add-ons \ pws \ setup.exe on the attachment 98. select the typical installation directory C: \ Inetpub \ wwwroot; 2. software download...