Windowsxp+apache2.0.39+php-4.2.3-dev
source File Download:
1. http://www.apache.org/dist/httpd/binaries/win32/
The following Apache_2.0.39-win32-x86-no_ssl.msi
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 the server and PHP:
1. Select the downloaded Apache MSI file, right-click to select Install, default mode
2. Unzip the Php4-win32-stable-snapshotnumber.zip and get
Php4-win32-stable-snapshotnumber folder, rename it to PHP, and
Copy to C: below.
3. Copy the Php4ts.dll under C:php to C:wondowssystem32 (that is, the PATH environment variable
First path name)
(4. Copy all the. dll files under C:phpdll to C:wondowssystem32.) See below
Configuring PHP.ini and Http.conf
1. Copy the c:phpphp.ini-dist to the c:windows and change the name to PHP.ini
2. Open the php.ini file, locate the doc_root= key, and set the
doc_root= "C:Program Filesapache groupapache2htdocs"
That is, the PHP file under this directory (the Apache server main document directory) can be executed.
Locate the extension_dir= entry, set to
Extension_dir = "C:phpsapi" There is a. dll file with the extension library (note that
When the page cannot be executed, giving the error cannot find the. dll file, the C:PHPSAPI will be 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 up (at least localhost),
Find a series of loadmodule at the beginning of the instruction, add the following at the end:
LoadModule Php4_module C:/php/sapi/php4apache2.dll
Setoutputfilter PHP
Next, find the AddType application/x-tar.tgz directive, and then add:
AddType application/x-httpd-php. php
Save the httpd.conf and exit the edit.
Restart Apache2 Service
You can type in the command line mode:
net stop Apache2
net start apache2
To add a. php file, such as index.php, in the browser address bar, in the htdocs/directory.
http://localhost/index.php
Try, hope you good luck!!
http://www.bkjia.com/PHPjc/531743.html www.bkjia.com true http://www.bkjia.com/PHPjc/531743.html techarticle windowsxp+apache2.0.39+php-4.2.3-dev source file Download: 1. http://www.apache.org/dist/httpd/binaries/win32/the apache_ below 2.0.39-win32-x86-no_ssl.msi or Apache_2.0.39-win32-x86 ...