Home  >  Article  >  Backend Development  >  Apache2.0.39php4.2.3 is built in module mode under windowsXP._PHP tutorial

Apache2.0.39php4.2.3 is built in module mode under windowsXP._PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:28:40787browse


WindowsXP+Apache2.0.39+php-4.2.3-dev
Source file download:
1. http://www.apache.org/dist/httpd/binaries/win32/
Below 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 server and php:
1. Select the downloaded apache msi file, right-click and select installation, default method That's it
2. Unzip php4-win32-STABLE-snapshotnumber.zip, get the
php4-win32-STABLE-snapshotnumber folder, rename it to php, and
copy it to c:.
3. Copy php4ts.dll under c:php to c:wondowssystem32 (that is, the
first path name of the PATH environment variable)
(4. Copy all .dll files under c:phpdll to c:wondowssystem32.) See below
to configure php.ini and http.conf
1. Copy c:phpphp.ini-dist to c:windows and rename it to php.ini


2. Open the php.ini file, find the doc_root= item, and set it to
doc_root="C:Program FilesApache GroupApache2htdocs"
That is, only php files in this directory (apache server main document directory) can be executed.
Find the extension_dir= item and set it to
extension_dir ="C:PHPsapi" which contains the .dll file of the extension library (note,
When the web page cannot be executed and an error is given that the .dll file cannot be found, set Copy all
.dll under c:phpsapi to c:windowssystem32).
Save php.ini and exit editing.
3. Open c:progame filesapache groupapache2confhttpd.conf
Make sure the servername is set ( At least localhost),
Find a series of command items starting with LoadModule, 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 command and add after it:
AddType application/x-httpd-php .php
Save httpd.conf and exit editing .
Restart the apache2 service
You can type in the command line mode:
net stop apache2
net start apache2

Add the .php file in the ....htdocs/ directory, such as index.php, type
http://localhost/index.php
into the browser address bar and try it, I wish you good luck!!

www.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/ The following apache_2.0.39-win32-x86-no_ssl.msi or apache_2.0.39-win32-x86...
Statement:
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