Brother even PHP Training: How to configure Apache. First, install and configure the PHP3
1. Unpack the package to your favorite directory such as: C:PHP3
2. Rename the C:php3php3.ini-inst file to Php3.ini and copy to C:windows
3, modify the Php3.ini.
A, change the doc_root=xxxx to your own Apache root directory
Like this: Doc_root=c:apachehtdocs
B, extension_dir=xxxx change to your own PHP3 installation directory
Like this: extension_dir=c:php3
C, if you need the appropriate database support to find
; Windowsextensions
Extension=php3_mysql.dll I used MySQL so I removed the 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 Hit it alive.
Next, install and configure Apache.
Open the Apache directory under confhttpd.conf to configure
Find <directory "xxxx" > a sentence, to change xxxx to your own PHP3 installation directory.
Like this:
<directory "C:PHP3" >
Allowoverridenone
Optionsnone
</Directory>
Append the following 3 lines to the end of the httpd.conf file. Note that the first line of quotation marks is changed to your own PHP3 installation directory, others please do not change.
scriptalias/php3/"c:/php3/"
Addtypeapplication/x-httpd-php3.php3.php.phtml
Actionapplication/x-httpd-php3 "/php3/php.exe"
Find a file to test it!
Copy a PHP3 file into the apache/hdtocs/and start the apache! Let ' sgo!!
Open your browser and wait for the thrill of the moment!!!!
Commissioning Environment: Chinese win984.2222apache1.3.11php3.0.15
PHP Basic Tutorial-apache