Install PHP4.0 on Win98 + PWS

Source: Internet
Author: User
Author: Jiang Yonggang's current network technology is booming, just seeing CGI (CommonGatewayInterface) and ASP (ActiveServePage), and then killing PHP (see post note. The emergence of these new software not only brings us a brand new feeling, but also brings problems for me to wait for machines with lower configurations to play with these software. This article is my author: Jiang Yonggang

Today's network technology is booming, just seeing CGI (Common Gateway Interface) and ASP (Active Serve Page), and then killing php/> PHP (see note later), which is really confusing. The emergence of these new software not only brings us a brand new feeling, but also brings problems for me to wait for machines with lower configurations to play with these software. This article will show my own experiences, describe how to install php/> PHP4.0 software under low machine configuration.

My "love chicken" configuration is: Lenovo Tianqin 909 transformation product: MMX166 changed to K6 Ⅱ-400, the memory is still 32 MB, the core voltage of the motherboard jumped to 2.2 V ......

The software only requires Windows 98 + PWS (Personal Web Server). NT, LINUX, and Win 2000 are not installed. The installation process is as follows:

1. you can install pws from add-ons \ PWS \ setup.exe on the installation disk of Windows 98 (official or OEM), select a typical installation or custom installation, and use the default installation directory C: \ Inetpub \ wwwroot (the grand project of transforming a single machine into a server ).

2. download the software: software!

3. decompress php-4.0.0-win32.zip to the PHP installation directory, such as C: \ php (do not say you do not have WinZip )!

4. install PHP in the php installation directory. copy the ini-dist file to the C: \ WINDOWS directory, and copy C: \ WINDOWS \ php. ini-dist is renamed as C: \ WINDOWS \ php. ini;

5. install Msvcrt in the PHP installation directory. dll and php4ts. copy the dll to the C: \ WINDOWS \ System directory. do not overwrite these files if they already exist in the C: \ WINDOWS \ System directory (check whether Msvcrt exists in advance. dll );

6. modify C: \ WINDOWS \ php. ini:

1) set Extension_dir to the PHP installation directory, for example, extension_dir = C: \ php (in php. ini, check the left and right to find it );

2) configure the dynamic link library (DLL) to be loaded. Be sure to load only the dynamic link library in the PHP installation directory. if there are different dynamic link library names, replace it with the dynamic link libraries: php_calendar.dll, php_imap.dll, and php_ldap.dll. Therefore, the configuration column of the dynamic link library is as follows (must be removed ):

Windows Extensions

Extension = php_calendar.dll

Extension = php_imap.dll

Extension = php_ldap.dll

7. open C: \ php \ php_text_file, right-click the PWS-php4.reg, select "edit", and set REGEDIT4 [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w3svc \ parameters \ Script Map] path, edit as ". php "=" c: \ php \ php4isapi. dll, double-click the PWS-php4.reg, you can see the success of loading prompt.

Run the regedit program (start → run, enter regedit) and find the following path:

HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ W3SVC \ Parameters \ Script Map, right-click "Script Map"> "new"> "string value" and name it. php, double-click the created string value, and enter php4isapi in the key value input box. the complete path of the dll file is c: \ php \ php4isapi. dll;

8. create a PHP Test Directory, such as c: \ Myphp. open the PWS manager and click "Advanced configuration" to add a virtual directory. In this example, c: \ Myphp is used, name: Myphp. select "read", "execute", and "script" for the access permission ";

9. restart the computer;

10. write a program 1.php under the Myphp Directory (what tool is used, of course, notepad !), The content is <〈? Echo "Hello World !";? >, And then "start"> "run", enter http: // localhost/myphp/1.php. Wow! Cool.

If you have any questions, please discuss them! My sister: leimou@263.net.



PHP (Personal Home Page) is a server-side embedded Scrip language. This language uses a lot of C, Java, and Perl syntax to enable Web developers to quickly write dynamic pages.

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.