##########unix
This is the simplest and most efficient, get the source code of PHP4 and apache1.3.12. In the form of tar.gz.
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 AddType application/x-httpd-php. PHP in front of #
#/apache/bin/apachestl restart
#####windows nt/2000
Using the IIS4/5 ISAPI interface is highly efficient
Nt4.0server need to install Option Pack 1
Download PHP4 binary WinZip version, unpack to a directory,
such as c:php
The following assumptions nt/2000 installed in the C:WINNT
C:>copy c:phpphp.ini-dist C:winntphp.ini
C:>copy C:phpphp4ts.dll CLwinntsystem32
Back to the graphical environment to start IIS Manager
Right-click on the Web site icon and select "Properties" "ISAPI filter"
Add a new filter with the name PHP
The path is: C:phpphp4isapi.dll
Then open the home directory properties for the appropriate Web site
Press the "Configure" button and select "Application Mapping"
Add. php extension, executable file use
C:phpphp4isapi.dll
Restart IIS.
#####windows 98
It is not recommended to use PWS because it modifies the registry.
You can use Apache 1.3.12 for Win32
Download Install apache1.3.12 W32 version
The default installation directory is
C:Program Filesapache Groupapache
Download the Win32 version of the installation php4.0.0
Unzip to c:php
Suppose the Windows installation directory is c:windows
Copy c:phpphp.ini-dist c:windows
Copy C:phpphp4ts.dll C:windowssystem
Edit
C:Program Filesapache groupapacheconfhttpd.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 better to add a lot of addtype to the place.
Start Apache from the Start menu
http://www.bkjia.com/PHPjc/629857.html www.bkjia.com true http://www.bkjia.com/PHPjc/629857.html techarticle ##########unix This is the simplest and most efficient, get the source code for PHP4 and apache1.3.12. In the form of tar.gz. Complete as root: #tar-zxvf apache_1.3.12 ....