Apache2.0.39php4.2.3 is set up in the module mode of windowsXP .. Windows XP + Apache2.0.39 + php-4.2.3-dev source file download: 1. apache_2.0.39-win32-x86-no_ssl.msi under www. apache. orgdisthttpdbinarieswin32 or apache_2.0.39-win32-x86 WindowsXP + Apache2.0.39 + php-4.2.3-dev
SOURCE file download:
1. http://www.apache.org/dist/httpd/binaries/win32/
Apache_2.0.39-win32-x86-no_ssl.msi below
Export apache_2.0.39-win32-x86-no_ssl.exe
(A full setup package (.exe) containing the Win9x/WinNT
Microsoft System Installer is available.
If the Microsoft System Installer is already on the machine,
There is no need to download the. exe, save yourself 3 MB and
Download the. msi package .)
2. http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Install the server and php:
1. select the downloaded apache msi file, right-click it, and choose install from the shortcut menu.
2.decompress php4-win32-stable-snapshotnumber.zip to obtain
Php4-win32-STABLE-snapshotnumber folder, rename to php, and
Copy to c.
3. copy php4ts. dll in c: php to c: wondowssystem32 (that is, the PATH environment variable
The first path name)
(4. copy all. dll files under c: phpdll to c: wondowssystem32.) see the following
Configure php. ini and http. conf
1. Copy c: phpphp. ini-dist to c: windows and change it to php. ini.
2. open the php. ini file, find doc_root =, and set it
Doc_root = "C: Program FilesApache GroupApache2htdocs"
That is, the PHP file under this directory (main file directory of the apache server) can be executed.
Find the extension_dir = item and set it
Extension_dir = "C: PHPsapi" contains the. dll file of the extension Library (note,
When the webpage cannot be executed and the. dll file cannot be found due to an error
. Dll to c: windowssystem32 ).
Save php. ini and exit editing.
3. open c: progame filesapache groupapache2confhttpd. conf
Make sure that servername is set (at least localhost ),
Locate the command entry starting with a series of loadmodules and add the following content at the end:
LoadModule php4_module c:/php/sapi/php4apache2. dll
SetOutputFilter PHP
Next, find the AddTYpe application/x-tar.tgz directive, and add the following after it:
AddType application/x-httpd-php. php
Save httpd. conf and exit editing.
Restart apache2
You can type:
Net stop apache2
Net start apache2
Add the. php file such as index. php under the Directory... htdocs/, and type
Http: // localhost/index. php
Try it. good luck !!
Http://www.bkjia.com/PHPjc/531743.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/531743.htmlTechArticleWindowsXP+Apache2.0.39+php-4.2.3-dev source file download: 1. http://www.apache.org/dist/httpd/binaries/win32/ under the apache_2.0.39-win32-x86-no_ssl.msi or apache_2.0.39-win32-x86...