Installing the PHP4.0 _php Tutorial on PWS

Source: Internet
Author: User
Tags phpinfo
1. You can install personal Web Server from the Add-ons\pws\setup.exe of the Windows 98 installation disk.
Choose a typical installation, use the default installation directory C:\Inetpub\wwwroot;
2. Software Download:
Http://www.php.net/distributions/php-4.0.0-Win32.zip
3, using WinZip and other decompression tools to untie 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. Please refer to the README.txt file in the $php_root directory for detailed English installation documents;
5. Copy the Php.ini-dist file from the $php_root directory to the C:\WINDOWS directory and C:\WINDOWS\PHP.I
Ni-dist renamed to C:\WINDOWS\php.ini;
6. Copy the MSVCRT.DLL and Php4ts.dll in the $php_root directory to the C:\WINDOWS\System directory, if c \
These files already exist under the Windows\System directory, please do not overwrite them;
7, modify C:\WINDOWS\php.ini:
1) Set Extension_dir to the PHP installation directory, such as: Extension_dir = C:\PHP
2) Configure the dynamic Walks Library (DLL) to be loaded, be sure to load only the $php_root directory that exists
Dynamic walks Library, which comes with 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 the Regedit program (Start-and-run, enter regedit) and locate the following path:
My computer
HKEY_Local_Machine
System
CurrentControlSet
Services
W3svc
Parameters
Script Map
Then right-click the script map-> new string value, named. PHP (your PHP program will be suffixed with. php.)
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
The 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, click Properties), open the post-point advanced Configuration, add a virtual directory, the directory is $myph
P, in this case, D:\MyPHP, alias is myphp, access rights are read, execute, script;
10, restart the computer;
11, in the $myphp directory to write a test program phpinfo.php (note the suffix and 8 in accordance with the suffix OH), the content is
, and then enter the http://localhost/myphp/phpinfo.php test on the browser to see
Some of the information to PHP is ready to be installed.

http://www.bkjia.com/PHPjc/317032.html www.bkjia.com true http://www.bkjia.com/PHPjc/317032.html techarticle 1. You can install personal Web Server from the Add-ons\pws\setup.exe of the Windows 98 installation disk, choose a typical installation, use the default installation directory C:\Inetpub\wwwroot; 2. Software download ...

  • 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.