Home > Article > Backend Development > Complete PHP installation guide: APACHE_PHP tutorial
First, install and configure PHP3
1. Unzip the compressed package to your favorite directory such as: C:PHP3
2. Rename the C:php3php3.ini-inst file to PHP3.INI and copy it to C:windows
3. Modify php3.ini.
a. Modify doc_root=XXXX to your own APACHE root directory
For example, like this: doc_root=c:apachehtdocs
b. Change extension_dir=XXXX to your own PHP3 installation directory
For example, like this Like this: extension_dir=c:php3
c. If you need the corresponding database support, find
;WindowsExtensions
extension=php3_mysql.dll. I use 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 to activate it.
Next, install and configure APACHE.
Open CONFHTTPD.CONF in the APACHE directory for configuration
Find the sentence
Like the following:
AllowOverrideNone
OptionsNone
Append the following 3 lines to the end of the HTTPD.CONF file. Note that the content in the quotation marks in the first line must be changed to your own PHP3 installation directory, and please do not change the others.
ScriptAlias/php3/"c:/php3/"
AddTypeapplication/x-httpd-php3.php3.php.phtml
Actionapplication/x-httpd-php3"/php3/php.exe"
Find a file and test it!
Copy a PHP3 file into apache/hdtocs/ and start APACHE! LET`SGO!!
Open your browser and wait for that exciting moment! ! ! !
Debug environment: Chinese win984.2222apache1.3.11php3.0.15