WinXP under apache2.052-win32+php4.39-win32+mysql4.022 configuration by
Apache,php4,mysql, can be down on the Internet, here is not to say,
I just did it and I wrote it out for you to share.
(i) Apache configuration
1. Install APACHE_2.0.52-WIN32, the default installation path for the program is: C:\apache2\program files\apache group\, you need to modify its installation path to: \ C
(can also not make changes, mainly in order to modify the configuration to make changes easily).
2. After the installation is complete, the Apache service automatically loads, then opens the browser, browse: http://localhost, the Apache Welcome page appears
(This step needs to change the file "Index.html.en" in the C:\apache2\htdocs directory to "index.html" to display); If this step occurs, check the installation source file, reinstall
3. Install Php-4.3.3-win32, general download PHP file for a free installation of the compressed package, unzip to C:\PHP can.
4. Configure PHP and Apache to parse the PHP program.
PHP configuration: Rename "Php.ini-dist" in the C:\PHP\ directory "php.ini" and copy to C:\windows\system32 (Win2K directory: C:\winnt\system32)
Also, copy all the. dll files from the DLLs directory in the PHP4 to c:\windows\system32\
And we're going to have to copy Php4ts.dll to c:\windows\system32\.
To modify some parameters in "php.ini"
PHP.ini default is to be placed under C:\Windows
Find Doc_root
Doc_root = changed to a web directory on the line,
Example Doc_root =c:\apache\apache2\htdocs
Find Extension_dir = change to where you want to load the. dll
Example Extension_dir = "C:\php\extensions\"
Found it
; Windows Extensions
; Note that MySQL and ODBC support are now built in, so no DLL
Extension=php_bz2.dll
Extension=php_cpdf.dll
; Extension=php_crack.dll
Extension=php_curl.dll
; Extension=php_db.dll
Extension=php_dba.dll
; Extension=php_dbase.dll
Extension=php_dbx.dll
; Extension=php_domxml.dll
; Extension=php_exif.dll
Extension=php_fdf.dll
Extension=php_filepro.dll
Extension=php_gd2.dll
Extension=php_gettext.dll
; Extension=php_hyperwave.dll
Extension=php_iconv.dll
; Extension=php_ifx.dll
; Extension=php_iisfunc.dll
Extension=php_imap.dll
; Extension=php_interbase.dll
; Extension=php_java.dll
Extension=php_ldap.dll
Extension=php_mbstring.dll
; Extension=php_mcrypt.dll
Extension=php_mhash.dll
Extension=php_mime_magic.dll
Extension=php_ming.dll
; Extension=php_mssql.dll
Extension=php_msql.dll
; Extension=php_oci8.dll
Extension=php_openssl.dll
; Extension=php_oracle.dll
Extension=php_pdf.dll
; Extension=php_pgsql.dll
; Extension=php_printer.dll
Extension=php_shmop.dll
Extension=php_snmp.dll
Extension=php_sockets.dll
; Extension=php_sybase_ct.dll
; Extension=php_w32api.dll
Extension=php_xmlrpc.dll
Extension=php_xslt.dll
; Extension=php_yaz.dll
Extension=php_zip.dll
Do as the change on the line, do not add superfluous will be wrong,
Mysql.default_host =localhost
Mysql.default_user =root
Mysql.default_password = Your own password
This section has been set up and passed
Apache Configuration:
To change the name of C:\pache\htdocs\index.htmle.en to index.html otherwise do the tester when you do not see the page remember (I have been busy here for a long time)
C:\apahce2\conf\httpd.conf
Find ServerRoot
Change it to your catalogue, don't be wrong.
For example ServerRoot "C:/apache/apache2"
Port, because there are some local telecom put 80, so to change into such a
Listen 8080
Find #loadmodule ssl_module modules/mod_ssl.so enter this line below
LoadModule Php4_module C:\php\sapi\php4apache2.dll (very important to the management body)
Find DocumentRoot
Change it back to your web directory.
DocumentRoot "C:/apache/apache2/htdocs"
In the following
Line get rid of options Index (delete it can prohibit access to the Web Directory Security first AH) followsymlinks
httpd.conf
D at the end of this configuration file, add the following statement to support the PHP program:
scriptalias/php/"c:/php/"
AddType application/x-httpd-php. PHP
AddType APPL ication/x-httpd-php. PHP4
AddType application/x-httpd-php. phtml
AddType application/x-httpd-php. PHP3
A Ddtype application/x-httpd-php-source. Phps
Action application/x-httpd-php "/php/php.exe"
5. Restart the Apache server and use the editor to write the following statement:
!--? phpinfo ();
?>
Saves the file name "test.php" to the C:\apache2\htdocs directory, and then opens the browser, browsing: http://localhost:8080/test.php, the basic information about the PHP configuration is successful. Installing the configuration in strict accordance with the above instructions will be successful at once.
Above describes the Apache and PHP installation WinXP under Apache+php4+mysql, including the Apache and PHP installation aspects, I hope to be interested in PHP tutorial friends helpful.