Installation and configuration of Apache and PHP in Windows 9x/NT

Source: Internet
Author: User
Tags php email

The most frequently asked question in the PHP email list is: "How to install PHP on my Windows machine ?", Maybe I can help answer this question. After the installation is complete, you will find that developing PHP programs in Windows is still good.
 
The purpose of this tutorial is to show you how to develop PHP programs using a combination of Apache and Windows.
 
If no specific version is specified in the tutorial, PHP is PHP3, PHP4 Beta 2 or 3, and Apache is 1.3.x.
 
1. install Apache
First, you need a WEB server. I recommend Apache. First go to htp: // www.apache.org/dist. On this page, there is a list of worldwide Apache image sites. Find the one closest to you. Apachesoftware is generally called apache_1_3_x.win32.exe. Run it on your machine. It will ask you where to install Apache. You can set it to c: Apache, because you will modify its configuration file immediately. If there is nothing wrong with the installation, Apache can be used. There are many readme files for reference, but only one file is about Win32 platform, including Windows 9x and Windows NT.
 
Ii. install PHP
This problem occurs too many times in the PHP email list. You need to install the latest PHP version for Windows. You may want to compile PHP3 on your own, but I don't think it is necessary for general development purposes. PHP also has image sites all over the world (which does not seem to exist in China ). Select an image, find the Download Area, select "Source code and Windows distribution", and download "Windows Binary ". You only need to Unzip the downloaded file (WinZip is good) to your favorite directory, such as C: PHP4B3. we recommend that you use the version number as the directory name, so that you do not need to delete the old version when you try to update the version in the future.
 
Install PHP4 Beta in Windows 95/97 With DCOM support. If your machine is not installed, download one here.
 
3. Configure PHP
There is a Readme file in the package that is distributed with PHP, which describes how to configure it. There is a file named PHP. INI-dist, which is the main configuration file of PHP. Copy it to your Windows System directory (Windows 9x Windows or Windows NT WinNT directory) and change it to PHP. INI. You need to make proper modifications to this file. The most important thing is to add modules that may be used, such as MySQL. Find the following section in the PHP. ini file:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automaticly, use
; Following syntax: extension = modulename. extension
; For example, on windows,
; Extension = msql. dll; or under UNIX,

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.