Install PHP4.0 on Win 98+PWS

Source: Internet
Author: User
Tags copy file copy ini win32 zip

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

1, you can install PWS from Windows 98 (official or OEM version) of the Add-ons\pws\setup.exe installation disk, select a typical installation or custom installation, and use the default installation directory C:\Inetpub\wwwroot ( Complete a stand-alone transformation into a server of the Magnificent project).

2, software download: Http://www.php.net/distributions/php-4.0.0-Win32.zip or directly to my request (take the memory of the cannon to me)!

3, with the decompression tool to extract the Php-4.0.0-win32.zip to the PHP installation directory, such as C:\php (do not say you do not WinZip AH)!

4, the PHP installation directory under the Php.ini-dist file copy to the C:\WINDOWS directory, and will C:\WINDOWS\php.ini-dist renamed C:\WINDOWS\php.ini;

5, the PHP installation directory under the Msvcrt.dll and Php4ts.dll copy to the C:\WINDOWS\System directory, if the C:\WINDOWS\System directory already exists in these files, please do not overwrite ( Find out beforehand if there are any Msvcrt.dll);

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

1) will extension_dir set to the PHP installation directory, such as: Extension_dir =c:\php (in the php.ini left look right, you can find);

2 Configure the dynamic link library (DLL) to load, note that you must ensure that only the dynamic link libraries that exist under the PHP installation directory can be loaded, and if there are different dynamic link library names, please change to the dynamic link library with that version: Php_calendar.dll, Php_imap.dll, PHP The _ldap.dll is consistent, so the configuration bar for the dynamic link library is as follows (be sure; remove):

Windows Extensions

Extension=php_calendar.dll

Extension=php_imap.dll

Extension=php_ldap.dll

7, open C:\php\php_text_file, right click Pws-php4.reg, select "Edit", will Regedit4[hkey_local_machine\system\currentcontrolset\services\ Path to W3svc\parameters\script Map, edited as ". php" = "C:\\php\\php4isapi.dll", double-click Pws-php4.reg to see the prompt to load success.

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

Hkey_local_machine\system\currentcontrolset\services\w3svc\parameters\script map, then right click "Script map" → "New" → "string Value", The name is. PHP, double-click the newly built string value, enter the full path of the Php4isapi.dll file in the key value input box such as C:\php\php4isapi.dll;

8, build a PHP test directory, such as c:\Myphp, open the PWS manager, open the point "Advanced Configuration", add a virtual directory, in this case, c:\Myphp, the name is myphp, access to select "read", "execute", "script";

9, restart the computer;

10, in the myphp directory to write a program 1.php (with what tools, of course, Notepad!), the content is 〈?echo "Hello world!";? And then "start" → "Run", enter localhost/myphp/1.php. Wow, that's cool.

PHP (Personal home Page)--is a service-side embedded scrip language. The language borrows heavily from the syntax of the C, Java, and Perl languages, enabling Web developers to quickly write dynamically generated 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.