Home > Backend Development > PHP Tutorial > Install the official version of PHP4.0 on PWS_PHP tutorial

Install the official version of PHP4.0 on PWS_PHP tutorial

WBOY
Release: 2016-07-21 16:00:52
Original
1039 people have browsed it

1. You can install Personal Web Server from add-onspwssetup.exe on the Windows 98 installation disk.
Just select typical installation. Use the default installation directory C: Inetpubwwwroot;
2. Software download:
http://www.php.net/distributions/php-4.0.0-Win32.zip
3. Use WinZIP and other decompression tools to unzip php-4.0.0-Win32.zip to the PHP installation directory , such as C:PHP, in this article
Use $PHP_ROOT to replace the PHP installation directory;
4. For detailed English installation documentation, please refer to the README.txt file in the $PHP_ROOT directory;
5. Replace $PHP_ROOT Copy the php.ini-dist file in the directory to the C:WINDOWS directory, and rename C:WINDOWSphp.i
ni-dist to C:WINDOWSphp.ini;
6. Change the MSVCRT in the $PHP_ROOT directory. Copy DLL and php4ts.dll to the C:WINDOWSSystem directory. If these files already exist in the C:
WINDOWSSystem directory, please do not overwrite them;
7. Modify C:WINDOWSphp.ini:
1) Set extension_dir Install the directory for PHP, such as: extension_dir = C:PHP
2) Configure the dynamic link library (DLL) to be loaded. Note that you must ensure that only dynamic link libraries with
in the $PHP_ROOT directory can be loaded. This version comes with these dynamic interface libraries: php_calendar.dll, php_imap.dll, php_ldap
.dll, so the configuration column of the dynamic interface library is as follows: 🎜>                                                                                     use using using using using ’ ‐ ‐ ‐ ‐ ‐ ‐ ‐ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​HKEY_LOCAL_MACHINE
System
CurrentControlSet
Services
W3SVC
Para meters
Script Map
Then right-click Script Map->New->String value, named .php (at this time you The PHP program must have the suffix .php
, of course you can change it to something else), double-click the newly created string value, and enter the complete path
of the php4isapi.dll file in the key value input box $PHP_ROOTphp4isapi.dll, such as C:PHPphp4isapi.dll;
9. Create a PHP test directory, such as D:MyPHP. In this article, $MyPHP is used to replace the directory, and open the PWS manager (right
click Status A small icon under the column, click Properties), open it, click Advanced Configuration, add a virtual directory, the directory is $MyPH
P, in this example it is D:MyPHP, the alias is MyPHP, and the access rights are read and execute , script;
10. Restart the computer;
11. Write a test program phpinfo.php in the $MyPHP directory (note that the suffix must be consistent with the suffix in 8), the content is
, then enter http://localhost/myphp/phpinfo.php on the browser to test. If you can see
some information about php, it means it is installed.





http://www.bkjia.com/PHPjc/317032.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/317032.htmlTechArticle1. You can install Personal Web Server from add-onspwssetup.exe on the Windows 98 installation disk, select Typical Just install it, use the default installation directory C:Inetpubwwwroot; 2. Software download...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template