Install the PHP4.0 official version _php Foundation on PWS

Source: Internet
Author: User
Tags phpinfo
1, you can install personal Web Server from the Add-ons\pws\setup.exe of the installation disk of Windows 98.
Select a typical installation on it, using the default installation directory C:\Inetpub\wwwroot;
2, software download:
Http://www.php.net/distributions/php-4.0.0-Win32.zip
3, with WinZip and other decompression tools to Php-4.0.0-win32.zip to the PHP installation directory, such as C:\PHP, this article
Use $php_root to replace the PHP installation directory;
4, detailed English installation documents, please refer to the $php_root directory of README.txt documents;
5, copy the Php.ini-dist file in the $php_root directory to the C:\WINDOWS directory, and will C:\WINDOWS\PHP.I
Ni-dist renamed as C:\WINDOWS\php.ini;
6, the $php_root directory under the MSVCRT.DLL and Php4ts.dll copy to the C:\WINDOWS\System directory, if C:\
These files already exist under the Windows\System directory, please do not overwrite;
7, modify the C:\WINDOWS\php.ini:
1) Set the Extension_dir to the PHP installation directory, such as: Extension_dir = C:\PHP
2 Configure the dynamic Walks Library (DLL) to load, note that you must ensure that only the $php_root directory exists
Dynamic walks Access library, which takes these dynamic walks libraries: Php_calendar.dll, Php_imap.dll, Php_ldap
. dll, so the configuration bar for the dynamic Walks 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), find the following path:
My computer
HKEY_Local_Machine
System
CurrentControlSet
Services
W3svc
Parameters
Script Map
Then right-click the script map-> to create a new-> string value named. PHP (your PHP program will have a. php suffix)
Oh, of course you can change to another), double-click the newly built string value, enter the Php4isapi.dll file in the key value input box
Whole path $php_root\php4isapi.dll, such as C:\PHP\php4isapi.dll;
9, build a PHP test directory, such as D:\MyPHP, in this article with $myphp to replace the directory, open the PWS manager (right
Click a small icon under the status bar, point properties, open the post-point advanced Configuration, add a virtual directory, directory for $myph
P, this example is D:\MyPHP, alias is myphp, access permission is read, execute, script;
10, restart the computer;
11, in the $myphp directory to write a test program phpinfo.php (note suffix to be consistent with the suffix in 8), the content of
? Phpinfo ();, and then enter the http://localhost/myphp/phpinfo.php test on the browser to see
Some information to PHP means it's ready.

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.