apache2.0.39 php4.2.3 is built under Windows XP module mode.

Source: Internet
Author: User
Tags exit command line copy ini php file win32 zip
Apache|window Windowsxp+apache2.0.39+php-4.2.3-dev
source File Download:
1. http://www.apache.org/dist/httpd/binaries/win32/
The apache_2.0.39-win32-x86-no_ssl.msi below
or 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

Install Server and PHP:
1. Select the download Apache MSI file, right-click to select installation, the default method can be
2. Decompression Php4-win32-stable-snapshotnumber.zip, get
Php4-win32-stable-snapshotnumber folder, renamed to PHP, and
Copy to C:.
3. Copy the Php4ts.dll under C:php to C:wondowssystem32 (that is, the PATH environment variable
First path name)
(4. Copy all. dll files under C:phpdll to C:wondowssystem32.) See below
Configure PHP.ini and http.conf
1. Copy C:phpphp.ini-dist to C:windows, renamed PHP.ini
2. Open the php.ini file and find the ' doc_root= ' item, set to
doc_root= "C:Program Filesapache groupapache2htdocs"
That is, the PHP file under this directory (the Apache server main document directory) can be executed.
Find the ' extension_dir= ' item, set to
Extension_dir = "C:phpsapi" This has the extension Library's. dll file (note,
When a Web page cannot be executed, and an error cannot be found, the. dll file is C:PHPSAPI under all
. dll is copied to c:windowssystem32.
Save PHP.ini and Exit edit.
3. Open C:progame Filesapache groupapache2confhttpd.conf
Make sure the servername is set (at least localhost),
Find a series of loadmodule that begin with, and add the following at the end:

LoadModule Php4_module C:/php/sapi/php4apache2.dll
<filesmatch ". php$" >
Setoutputfilter PHP
</FilesMatch>

Next find the AddType application/x-tar.tgz directive and add it later:

AddType application/x-httpd-php. php

Save the httpd.conf and exit the edit.
Restart the Apache2 service
You can type at the command line:
net stop Apache2
net start apache2


Add a. php file, such as index.php, in the htdocs/directory, type in the browser address bar
http://localhost/index.php
Try, hope you good luck!!



Related Article

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.