Installation and configuration of Apache1.3.x+PHP4 Beta3 under Windows 9x/NT_PHP tutorial

WBOY
Release: 2016-07-13 17:11:38
Original
706 people have browsed it

1. Install Apache
Go to http://www.apache.org/dist, the official site where Apache is released, download apache_1_3_x.win32.exe to your local machine and run it to c:Apache. If there are no errors in the installation, Apache can be used after the installation is completed. There are many readme files for reference under the Apache installation directory, but only one file talks about the Win32 platform, including Window 9x and Windows NT.

2. Install PHP
Go to PHP's official release site, select an image, find the download area, select "Source code and Windows distribution", and download "Windows Binary". You only need to unzip the current file to a directory you like, such as C:PHP4B3. I recommend using the version number as the directory name, so that you don't need to delete the old version when you try a newer version in the future. Installing PHP4 Beta under Windows 95/97 requires DCOM support. If it is not installed on your machine, go here to download a copy.

3. Configuring PHP
The file package distributed with PHP contains a main PHP configuration file PHP.INI-dist. Copy it to your Windows system directory (Windows for Windows 9x or WinNT for Windows NT) and rename it PHP.INI. This file needs to be modified appropriately. The most important thing is to add some modules that may be used, such as adding MySQL support. Find the "Dynamic Extensions" column in the PHP.INI file:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
; ;;;;;;;;;;;;;;;;;;;;;
Modify;extension=php_mysql.dll
Remove the preceding ";"
In certain circumstances, if The DLL file you want to use is not in this list, just add a line, such as: "extension=mydll.dll". In this way, PHP is configured.

4. Let Apache and PHP work together
Find the directory where you installed Apache in the first section, and open the .confhttpd.conf file with your favorite file editor, in this case c:\Apacheconfhttpd .conf (this is the main configuration file of APACHE). To make Apache work with PHP, you just need to add a few lines, as follows:
ScriptAlias ​​/php4b3/ "C:/PHP4B3/"
AddType application/x-httpd-php3 .php3
AddType application /x-httpd-php3 .php
AddType application/x-httpd-php3 .phtml
Action application/x-httpd-php3 "/php4b3/php.exe"

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629560.htmlTechArticle1. Install Apache. Go to the official site where Apache is released, http://www.apache.org/dist, and change apache_1_3_x Download .win32.exe to your local machine and run it to install it in c:Apache. If nothing happens during the installation...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!