Install PHP4.0 official version on PWS

Source: Internet
Author: User

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 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
<? Phpinfo () ;?>, Then enter http: // localhost/myphp/phpinfo. php In the browser to test.
Some information about php indicates that it has been installed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.