


Installation and configuration of Apache and PHP under Windows 9x/NT 1
Probably the most asked question on the PHP mailing list is: "How do I install PHP on my Windows machine?", so maybe I can help answer that question. When you have installed it correctly, you will find that it is good to develop PHP programs under Windows.
The purpose of this tutorial is to show you how to develop PHP programs using the combination of "Apache and Windows".
If the specific version is not specified in the tutorial, PHP is PHP3 or PHP4 Beta 2 or 3, and Apache is 1.3.x.
1. Install Apache
First of all, you need a WEB server, I recommend Apache. First go to http://www.apache.org/dist and take a look. On this page is a list of Apache mirror sites worldwide, find the one closest to you. Apache software is generally called apache_1_3_x.win32.exe. Put it into your machine and run it. It will ask you where to install Apache. You can set it to c:Apache because you will need to modify its configuration file soon. If nothing goes wrong with the installation, Apache will be ready to use. There are many readme files for reference, but only one file talks about the Win32 platform, including Window 9x and Windows NT.
2. Install PHP
This question appears too many times in the PHP mailing list. You need to install the latest Windows version of PHP. You might be tempted to compile PHP3 yourself, but I don't think for general development purposes this is necessary. PHP also has mirror sites all over the world (it seems there are none 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 current file (WinZip is good) to a directory you like, such as C:PHP4B3. I recommend using the version number as the directory name, so that when you try a newer version in the future, you don’t need to delete the old one. Version.
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. Configure PHP
There is a Readme file in the file package distributed with PHP, which describes how to configure it. There is a file called PHP.INI-dist which is the main configuration file of PHP. Copy it to your Windows system directory (Windows for Windows 9x or WinNT directory 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 MySQL. Find a section like the following in the PHP.INI file:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
; if you wish to have an extension loaded automatically, use the
; following syntax: extension=modulename.extension
; for example, on windows,
; extension=msql.dll ; or under UNIX,
; extension=msql.so
; Note that it should be the name of the module only,
; no directory information needs to go here.
; Specify the location of the extension with the
; extension_dir directive above.
The next few lines are commented, such as
;Windows Extensions
; extension=php_mysql.dll
;extension=php_nsmail.dll
;extension=php_calendar.dll
;extension=php_dbase.dll
;extension=php_filepro.dll
...
All you have to do is comment some lines of the file Remove, that is, delete the leading semicolon. I need MySQL support myself, so I removed the semicolon ";" from the "extension=php3_mysql.dll" line. In certain cases, the DLL file you want to use is not in this list, you just need to simply add a line, For example: "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 use your favorite file editor (preferably one that supports Win32 long file name format, such as Edit, Ultraedit, etc.) to open .confhttpd. conf file, in this example it is c:Apacheconfhttpd.conf (this is the most important configuration file of APACHE, do not modify it easily unless you are certain). If you don't understand the content, you can read the Apache documentation. 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"
It should be noted that the above three lines cannot be written incorrectly. The last part of the first line is the directory where you installed PHP; for the next two lines, you can copy and paste directly from here. This line of configuration commands is case-sensitive.
The above introduces the installation and configuration of Apache and PHP under Windows 9x/NT. 1, including the content, I hope it will be helpful to friends who are interested in PHP tutorials.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

Need to download the Gate.io app to start your cryptocurrency journey? This guide details the latest version download steps for iOS, Android, and Windows devices. Simply visit the official website, find the download link and select the appropriate option based on your device. For iOS, it will go directly to the App Store, while Android and Windows users will download the APK or installer for manual installation. Once installed, you can launch the app and set up your account to step into the world of cryptocurrency.

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

Choosing the right Bitcoin market viewing software is crucial, it can help investors grasp market conditions in real time and make smarter investment decisions. This article will guide you how to make a choice, covering personal needs assessment (trading frequency, analysis depth, information needs and budget), software type selection (exchange interface, professional software, market website/APP), core functional considerations (data reliability, chart tools, custom settings, community communication and platform compatibility), and direction recommendations (maturity financial platform, cryptocurrency aggregation platform, community recommendation software). Finally, it is recommended that you try a few more software and compare it to choose the tool that best suits your needs. Please remember that software is only an auxiliary tool, and you must be cautious when investing at your own risk.

The OKX trading platform can be downloaded through mobile devices (Android and iOS) and computers (Windows and macOS). 1. Android users can download it from the official website or Google Play, and they need to pay attention to security settings. 2. iOS users can download it through the App Store or follow the official announcement to obtain other methods. 3. Computer users can download the client of the corresponding system from the official website. Always make sure to use official channels when downloading, and register, log in and security settings after installation.

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

Alibaba Cloud’s new open source inference model Tongyi Qianwen QwQ-32B, with performance comparable to DeepSeek-R1! On March 6, Alibaba Cloud officially announced the open source of its latest research and development inference model- Tongyi Qianwen QwQ-32B. The model has achieved significant improvements in math, code and general capabilities, with performance levels comparable to the industry-leading DeepSeek-R1 model. This news stimulated Alibaba's stock price to rise sharply, once rising by more than 8%. Alibaba Cloud confirmed in several authoritative benchmark tests that Qianwen QwQ-32B's performance far exceeds OpenAI-o1-mini and is on par with DeepSeek-R1 in overall performance. What's more remarkable is that the model has greatly reduced its performance while maintaining high performance.

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.
