Home > Backend Development > PHP Tutorial > WINXp, configure apache2.0.52+php5.0.2+mysql4.0_PHP tutorial under windows2000

WINXp, configure apache2.0.52+php5.0.2+mysql4.0_PHP tutorial under windows2000

WBOY
Release: 2016-07-13 17:11:57
Original
934 people have browsed it

1. 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 apache_2.0.52-win32-x86-no_ssl
apache server software, I downloaded the win version, and the configurations of the 2.0 series are similar.
Double-click to install apache2.0.52. I installed it to D:ApacheGroup. Note that the directory name should not contain spaces, otherwise an error will occur when setting php below. After the installation is completed, apache runs automatically. Enter http://127.0.0.1 in the browser to see if the default web page is displayed. If you do not want to see this page, you can find httpd.conf in the D:ApacheGroupApache2conf directory and open it. Edit and search for DocumentRoot " In the 2.0 series version, only one DocumentRoot " will be found. Just change the path in the quotation marks to your own path. For example, DocumentRoot "D:/php" The default root directory is D now. :/php Note that "/" is used here.
2. Install php5.0.2
The downloaded php-5.0.2-Win32 is generally a compressed package in zip format. Unzip it to the D:ApacheGroup directory, and keep the files in one folder. Change The folder name is php5, which will facilitate the next work. Now we see that there are two folders under D:ApacheGroup, one is apache2 (a folder automatically generated when installing apache2.0.52) and the other is php5. My method is to have a folder for each software, and these folders In the same directory, it is easier to find.
Okay, we now start configuring apache to support php5.
First, find php.ini-dist in the D:ApacheGroupphp5 directory, rename it to php.ini and copy it to the C:WINDOWS directory,
Then, copy php5ts.dll and libmysql.dll in the D:ApacheGroupphp5 directory to C:windowssystem
Next, we start configuring the httpd.conf file under D:ApacheGroupApache2conf and open httpd.conf (can be opened with Notepad)
① Find AddDefaultCharset ISO-8859-1 and change it to AddDefaultCharset GB2312 (let the default language encoding be Simplified Chinese)
② Find DirectoryIndex index.html index.html.var and add index.htm index.php index at the end .php3
--------------Modular installation configuration--------------------------- ---------
Find the line #LoadModule ssl_module modules/mod_ssl.so and add a line after this line
LoadModule php5_module D:/ApacheGroup/Apache2/php5/php5apache2.dll
Among them, D:/ApacheGroup/Apache2/php5/ is your php directory. Find the line AddType application/x-gzip .gz .tgz and add a line

after this line.


http://www.bkjia.com/PHPjc/629530.html

www.bkjia.com

http: //www.bkjia.com/PHPjc/629530.htmlTechArticle1. Software used: 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 2. Specific steps to note: During the installation process, any...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template