Configure apache2.0.52 + php5.0.2 + mysql4.0 in WINXp and windows2000

Source: Internet
Author: User

I. Use software:
Apache_2.0.52-win32-x86-no_ssl
Php-5.0.2-Win32
Mysql-4.0.21-win
PhpMyAdmin-2.6.0
Configuration environment: Windows Xp sp2
Ii. Steps
Note: Do not use spaces in any directory or file name during the installation process,
Instead of using D: Program Files, use D: ProgramFiles.
1. apache_2.0.52-win32-x86-no_ssl
For apache server software, I downloaded the Windows version, and the configuration of the 2.0 series is similar.
Double-click to install apache2.0.52. I will install it on D: ApacheGroup. Note that the directory name should not contain spaces. Otherwise, php may fail to be set below. After the installation is complete, apache runs automatically. Enter http: // 127.0.0.1 in the browser to check whether the default webpage is displayed. If you do not want to see this page, go to D: find httpd in the directory of ApacheGroupApache2conf. conf open edit and find DocumentRoot. "In the 2.0 series, only one DocumentRoot is found. Change the path in the quotation marks to your own path, for example, the default root directory of DocumentRoot "D:/php" is D:/php. Note that "/" is used here.
2. Install php5.0.2
The downloaded php-5.0.2-Win32 is generally a zip compressed package, decompress to D: ApacheGroup directory, and make the files in a folder, change the folder name php5, so that the next work is convenient. Now we can see that there are already two folders under D: ApacheGroup. One is apache2 (a folder automatically generated by installing apache2.0.52) and the other is php5. My approach is to use one folder for each software, and these folders are in the same directory for easy searching.
Now we can configure apache to support php5.
First, rename php. ini-dist under the D: ApacheGroupphp5 directory to php. ini and copy it to the C: WINDOWS directory,
Copy php5ts. dll under the D: ApacheGroupphp5 directory and libmysql. dll to C: windowssystem
Next, we will start to configure the httpd. conf file under D: ApacheGroupApache2conf and open httpd. conf (which can be opened in Notepad)
(1) Find the adddefacharcharset ISO-8859-1 and change it to adddefacharcharset GB2312 (let the default language encoding to simplified Chinese)
② Locate DirectoryIndex index.html. var and add index.htm index. php index. php3
-------------- Modular installation configuration ------------------------------------
Find the # LoadModule ssl_module modules/mod_ssl.so line, and add a line after this line
LoadModule php5_module D:/ApacheGroup/Apache2/php5/php5apache2. dll
D:/ApacheGroup/Apache2/php5/For Your php Directory, find the AddType application/x-gzip. gz. tgz line, and add a line after this line

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.