Home php教程 php手册 apache2.0.39 php4.2.3在windowsXP下模块方式搭建.

apache2.0.39 php4.2.3在windowsXP下模块方式搭建.

Jun 21, 2016 am 09:08 AM
apache dll php quot win

apache|window

WindowsXP+Apache2.0.39+php-4.2.3-dev
源文件下载:
1. http://www.apache.org/dist/httpd/binaries/win32/
下面的 apache_2.0.39-win32-x86-no_ssl.msi
或者apache_2.0.39-win32-x86-no_ssl.exe

(A full setup package (.exe) containing the Win9x/WinNT
Microsoft System Installer installer is available.
If the Microsoft System Installer is already on the machine,
there is no need to download the .exe, save yourself 3MB and
download the .msi package.)

2. http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

安装服务器和php:
1.选中下载的apache的msi文件,单击右键选择安装,默认方式即可
2.解压缩php4-win32-STABLE-snapshotnumber.zip,得到
php4-win32-STABLE-snapshotnumber文件夹,重命名为php,并
复制到c:下.
3.将c:php下的php4ts.dll复制到c:wondowssystem32下(即PATH环境变量的
第一个路径名)
(4.将c:phpdll下所有.dll文件复制到c:wondowssystem32下.)见下面
配置php.ini和http.conf
1.将c:phpphp.ini-dist复制到c:windows下,改名为php.ini
2.打开php.ini文件,找到'doc_root='项,置为
doc_root="C:Program FilesApache GroupApache2htdocs"
即在这个目录(apache服务器主文档目录)下的php文件才可以执行.
找到'extension_dir='项,置为
extension_dir ="C:PHPsapi"这里面有扩展库的.dll文件(注意,
当网页不能执行,给出错误不能找到.dll文件时,将c:phpsapi下所有
.dll复制到c:windowssystem32下).
保存php.ini并退出编辑.
3.打开c:progame filesapache groupapache2confhttpd.conf
确保servername 设置好(最起码localhost),
找到一系列 LoadModule开头的指令项,在最后加入如下内容:

LoadModule php4_module c:/php/sapi/php4apache2.dll

SetOutputFilter PHP


接下来找到AddTYpe application/x-tar.tgz 指令,在其后加入:

AddType application/x-httpd-php .php

保存httpd.conf,并退出编辑.
重启apache2服务
可以在命令行方式下键入:
net stop apache2
net start apache2


在....htdocs/目录下加入.php文件如index.php,在浏览器地址栏内键入
http://localhost/index.php
试试看,希望你好运!!



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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

See all articles