##########unix
This is the simplest and most efficient, get php4 and apache1.3.12 source code. tar.gz form of.
Complete as root:
#tar-ZXVF apache_1.3.12.tar.gz
#cd apache_1.3.12
#./configure--prefix=/apache
#mkdir/apache
#cd.
#tar-ZXVF php-4.0.0.tar.gz
#cd php-4.0.0
#./configure--with-apache=. /apache_1.3.12--enable-track-vars--with-mysql--disable-debug
#make
#make Install
#cd. /apache_1.3.12
#./configure--prefix=/apache--activate-module=src/modules/php4/libphp4.a
#make
#make Install
#mv/usr/bin/httpd/usr/bin/httpd.old
#ln-S/APACHE/BIN/HTTPD/USR/BIN/HTTPD
#vi/apache/conf/httpd.conf
Remove the # in front of AddType application/x-httpd-php. php
#/apache/bin/apachestl restart
#####windows nt/2000
ISAPI interfaces that use IIS4/5 can be highly efficient
Nt4.0server need to install Option Pack 1
Download the binary WinZip version of PHP4, unpack to a directory,
such as c:\php
The following assumptions nt/2000 installed in the C:\Winnt
C:\>copy c:\php\php.ini-dist C:\winnt\php.ini
C:\>copy C:\php\PHP4TS. DLL Cl\winnt\system32
Back to the graphics environment start IIS Manager
Right-click on the Web site icon and select "Properties" "ISAPI filter"
Add a new filter, name is PHP
The path is: C:\php\php4isapi.dll
Then open the home directory properties for the corresponding web site
Press the "Configure" button and select "Application Mapping"
Add. php extension, executable file usage
C:\php\php4isapi.dll
Restart IIS.
#####windows 98
The use of PWS is not recommended because it modifies the registry.
You can use the Apache 1.3.12 for Win32
Download installation apache1.3.12 W32 version
The default installation directory is
C:\Program Files\apache Group\apache
Download the Win32 version of the installation php4.0.0
Extract to C:\php
Suppose the Windows installation directory is C:\Windows
Copy c:\php\php.ini-dist C:\Windows
Copy C:\php\PHP4TS. DLL C:\Windows\System
Edit
C:\Program Files\apache group\apache\conf\httpd.conf
Add the following three lines
scriptalias/php/"c:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php.exe"
It's best to add to a lot of addtype.
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.