Simple installation configuration for Apache + PHP5 + MYSQL4 + phpMyAdmin under Win2003
Source: Internet
Author: User
First from the official website under the APACHE2.050, PHP5, MYSQL4.0.20, PHPMYADMIN2.57
Apache_2.0.50-win32-x86-no_ssl.msi
Php-5.0.0-win32.zip
Mysql-4.0.20d-win.zip
Phpmyadmin-2.5.7.zip
OS win2003 system disk is: D disk
First step: Install Apache and configure support for PHP
Click the installation file Apache_2.0.50-win32-x86-no_ssl.msi
Install Apache in the D:apache2 directory (as you prefer)
Extract the contents of the Php-5.0.0-win32.zip into the d:php.
Locate the php.ini-dist in the PHP directory and rename it to php.ini and copy it to the Windows directory (Win2K Winnt)
Like my php.ini is a copy to the D:windows directory
Then copy the Php5ts.dll,libmysql.dll in the PHP directory to the System directory (SYSTEM/SYSTEM32) as mine is D:windowssystem.
Configure the httpd.conf in Apache
Open d:apache2confhttpd.conf This file
Locate Adddefaultcharset iso-8859-1 change it to Adddefaultcharset GB2312 (let the default language be encoded in Simplified Chinese)
Find DocumentRoot "D:/apache2/htdocs" to change it to your Web directory (do not change) as my DocumentRoot "D:/website"
Find DirectoryIndex index.html Index.html.var in the back and add index.htm index.php
Select installation mode: Modular installation or CGI mode Setup (optional)
--------------Modular Installation Configuration------------------------------------
Find #LoadModule Ssl_module modules/mod_ssl.so This line, add a line after this row
LoadModule Php5_module D:/php/php5apache2.dll
Where D:/php/php5apache2.dll is the location of the Php5apache2.dll in your PHP directory
Find AddType application/x-gzip gz. tgz, join a line after this row
AddType application/x-httpd-php. php
---------------------------------------------------------------
--------------CGI installation configuration--------------------------------------
Find AddType application/x-gzip gz tgz This line, add the following
scriptalias/php/"d:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php-cgi.exe"
---------------------------------------------------------------
The PHP environment is basically configured successfully at this time
In the Web root directory (such as my d:website), build a file named test.php that reads as follows
? Echo Phpinfo ();?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service