Configure apache2.0.52 + php5.0.2 + mysql4.0 in WIN2000/XP

Source: Internet
Author: User

◆ 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 Xp sp2

◆ II. Basic installation 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 the Host Name (both domain name and IP address) and port address in the browser.
DocumentRoot "D:/php" website root directory

DirectoryIndex index. php index.html index.htm index. php3 index.html. var Add the default document

ServerTokens Full: displays server information, Full: All, and Prod: minimum. It is recommended to set it to Prod, which is not easy to expose server information.

AddType application/x-httpd-php. php. phtml. php3. php4 added support for php, phtml, php3, and php4 files

◆ 3. Advanced Settings:

Now, even if the entire system is basically complete, the rest are some advanced settings:

Advanced features of apache:

1. Configure the ActivePerl-5.8.4.810-MSWin32-x86 (to support cgi/pl)

Double-download the activeperl-5.8.4.810-mswin32-x86.exe to install it in the D: apacheGroupPerl directory (preferably c: usr). To facilitate file management, I installed perl IN THE D: apacheGroupPerl directory.

Start setting httpd. conf make D: apacheGroupapache2cgi-bin directory automatically converted to virtual directory (it is best to put cgi program under this directory, if the picture can not be displayed normally, Please restart the computer, restart the General no problem, you can also place the cgi program in the root directory. After testing, the program runs normally in the root directory, and the image is displayed normally .)

(1) Search for the following Options statement. Remove All the following parameters and add an All parameter. Pay attention to Case sensitivity. Let's look at AllowOverride, remove None, and add an All

(2) search. There is an option in the eighth row below. Remove All the following parameters and add an All parameter. Note the case sensitivity. Then there is a AllowOverride in the number of rows, and the following None is also removed, and an All

(3) Search for # ScriptAlias/cgi-bin/"D:/apacheGroup/apache2/cgi-bin/" and remove #

(4) Look for it. In the following example, AllowOverride removes the following parameter and adds an All parameter. Note the case sensitivity. Next, an option will remove None and add an All

(5) Search for AddHandler cgi-script. cgi followed by. pl, that is, AddHandler cgi-script. cgi. pl.

(6) If you want to add SSI, remove the # Before the following two rows.

AddType text/html. shtml
AddOutputFilter between des. shtml
AddHandler server-parsed. shtml

Note thatIn the perl script, the default path of all cgi or pl file headers must be #! Change/usr/Perl/bin/perl.exe #! D:/apacheGroup/Perl/bin/perl.exe is the absolute path of your perl.exe! (If you use the c: usr directory for installation, you do not need to change it. We strongly recommend that you install perl in the c: usr directory.) Now, cgi and pl can be parsed successfully!

Summary:Here, we have a directory where perl.exe is located. installing it in the c: usr directory can reduce unnecessary settings (for example, setting each cgi/pl File Header #! /Usr/Perl/bin can also be modified in batches using ultraedit32. That's what I do !)

2. Installation of zendOptimizer255Windows-i386 (optimizing php performance)

Double-click the zendoptimizer255windows-i386.exe file to install it. During the installation process, the installation directory of apache and php are selected. the directory where ini is located. It can be automatically identified. If it cannot be found manually, it will be automatically started after installation, and no settings are required! This software can automatically set php. ini for php Execution program optimization!

Test: Compile the php page: the code is as follows:

Phpinfo ();
?>

Save as info. php

Run info. php to check whether the zend engine is used!

Now, all the components are installed! Put it into use!


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.