apache2.0.39 php4.2.3在windowsXP下模块方式搭建.
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
试试看,希望你好运!!

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

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

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

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

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

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

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

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 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.
