First, install and configure PHP3
1. Unzip the compressed package to your favorite directory such as: C:\PHP3
2. Rename the C:\php3\-inst file to and copy it to C:\windows\
3. Modify.
a. Modify doc_root=XXXX to change it to your own APACHE root directory
For example, like this: doc_root=c:\apache\htdocs
b. Change extension_dir=XXXX to your own PHP3 installation directory
For example, like this: extension_dir=c:\php3
c. If the corresponding database support is required, find it
;WindowsExtensions
extension=php3_mysql.dll I used MYSQL so I removed this item
;extension=php3_calendar.dll
;extension=php3_dbase.dll
;extension=php3_gd.dll
;extension=php3_dbm.dll
;extension=php3_mssql.dll
;extension=php3_zlib.dll
;extension=php3_filepro.dll
;extension=php3_imap4r1.dll
;extension=php3_ldap.dll
;extension=php3_crypt.dll
;extension=php3_msql2.dll
;extension=php3_odbc.dll
And remove the ";" on the response item and hit it alive.
Next, install and configure APACHE.
Open CONF\ in the APACHE directory to configure
Find the <Directory"xxxx"> and change XXXX into your own PHP3 installation directory.
Like this:
<Directory"c:\php3">
AllowOverrideNone
OptionsNone
</Directory>
Append the following 3 lines to the end of the file. Note that the contents in the first line of quotes should be changed to your own PHP3 installation directory, please do not change the others.
ScriptAlias/php3/"c:/php3/"
AddTypeapplication/x-httpd-php3.
Actionapplication/x-httpd-php3"/php3/"
Find a file to test it!
Copy a PHP3 file into apache/hdtocs/ and start APACHE! LET`SGO!!
Open the browser and wait for that exciting moment! ! ! !
Debugging environment: Chinese win984.2222apache1.3.11php3.0.15