Apache2.0.39php4.2.3 set up in Windows XP modules. _ PHP Tutorial

Source: Internet
Author: User
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...

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.