Configure Apache + PHP5 + MySql5 under Windows2000ADV

Source: Internet
Author: User
Tags myadmin

In the past, we used a kit package for convenience. apache (the most popular WEB server platform on the Unix platform. x. mySQL (the best combination with PHP) 4.X, php (as the mainstream development language) 4. x. it has been outdated for a long time .. and there are a lot of vulnerabilities. Fortunately, I only use them locally... however, in order to catch up with the trend, we just need to change the gun ..

Software Version used:

MySQL (best combination with PHP)-5.0.4-beta-win32

Apache (the most popular WEB server platform for Unix) _ 2.0.54-win32-x86-no_ssl

Php (as the mainstream development language)-5.0.3-Win32

Php (as the mainstream development language) MyAdmin-2.6.2-rc1

ZendOptimizerWindows-i386

The above software can be downloaded from various major download websites. Or you can directly log on to the official website to download the software. There are also a lot of configuration tutorials, so I will not make detailed technical documents ..

Php (as the current mainstream development language) Official Website http://www.php (as the current mainstream development language). net /? With the Chinese language service, you can even find the latest Chinese php (as the mainstream development language) Manual
Php (as the mainstream development language) download page http://www.php (as the mainstream development language). net/downloads. php (as the mainstream development language)

Official Website http://www.apache for apache (the most popular WEB server platform for Unix). org/
Download Page http://archive.apache (the most popular WEB server platform for Unix). org/dist/httpd/


MySQL (the best combination with PHP) is free of charge as the biggest feature of a database software. Of course, it is also very efficient and has similar features as php (as the mainstream development language ).
MySQL (best combination with PHP) Official Website http://www.MySQL (best combination with PHP). com/

Php (as the mainstream development language) MyAdmin for Windows V2.6.2

I downloaded it from the sky software site: http://www.skycn.com/soft/10687.html.

ZendOptimizerWindows, which is used to parse some source code and optimize it. I downloaded it from the sky software site.

Zend Optimizer V2.5.7 For Windows:

Is to download the sky software station: http://www.skycn.com/soft/20133.html

After installing all the programs, configure them .:

First, configure apache (the most popular WEB server platform on Unix) 2
Open the httpd. conf configuration file under the 2conf folder of apache (the most popular WEB server platform on Unix ).
To join
LoadFile c:/php (as the mainstream development language) 5ts. dll // load php (as the mainstream development language) 5ts. dll, which is a required link library for both apache (the most popular WEB server platform on the Unix platform) and iis (the Microsoft WEB server platform ).
LoadModule php (as the mainstream development language) 5_module c:/php (as the mainstream development language) 5. apache (the most popular WEB server platform on the Unix platform) 2.dll // load php (as the mainstream development language) 5. apache (the most popular WEB server platform on the Unix platform) Module
AddType application/x-httpd-php (as the mainstream development language). php (as the mainstream development language)
Www.acnow.net
Find DocumentRoot, followed by "C:/apache (the most popular WEB server platform on the Unix platform) 2/htdocs", which may vary depending on the installation path,
It is the location of the web page Directory and can be changed to what you need. Note that it is a slash "/" not a backslash ". After all, it is transplanted under linux.
Check for directoryindex. the value should be index.html. var.
This is the default homepage name. You need to add index. php (as the mainstream development language) index.htm.

Then configure php (as the mainstream development language)
Use php in the C: php folder (as the current mainstream development language) as the current mainstream development language ). ini-recommended: renamed php (as the mainstream development language ). ini
Php (as the mainstream development language ). ini: for security and efficiency considerations, php is recommended (as the mainstream development language ). ini-recommended as php (as the mainstream development language ). ini blueprint, instead of using php (as the mainstream development language ). ini-dist. At the same time, php (as the mainstream development language ). the search path of ini is no longer limited to % SystemRoot % in the 4 era of php (as the mainstream development language), and php (as the mainstream development language) 5. Search for php in the following path (as the mainstream development language ). ini:

* Php (as the mainstream development language) IniDir (apache (the most popular WEB server platform on Unix) 2 module only)
* Registry key value: HKEY_LOCAL_MACHINESOFTWAREphp (as the mainstream development language) IniFilePath
* Environment variable: % php (as the mainstream development language) RC %
* Php (as the mainstream development language) 5 directory (for CLI), or web Server Directory (
SAPI modules)
* Windows Directory (C: windows or C: winnt)
In combination with apache (the most popular WEB server platform on the Unix platform) 2, it is best to use php (as the mainstream development language) IniDir, the second is to use % php (as the mainstream development language) RC % environment variable. In addition, on NTFS, remember to open php (as the mainstream development language) to the server ). ini.
Open php (as the mainstream development language ). ini: Find extension_dir and change it to "C:/php (as the mainstream development language)/ext". Check that folder and you will know what it is.
Look for Windows Extensions, and there is a row below; extension = php (as the mainstream development language) _ ***. dll
Remove the semicolon (;) to support components.
At least
Extension = php (as the mainstream development language) _ gd2.dll
Extension = php (as the mainstream development language) _ mbstring. dll
Extension = php (as the mainstream development language) _ MySQL (the best combination with PHP). dll
Remove the semicolon
Php (as the mainstream development language) 5 does not support MySQL by default (the best combination with PHP), so we need to add support for it, in addition to extension = php (as the mainstream development language) _ MySQL (the best combination with PHP ). dll remove semicolon
In the php (as the mainstream development language) directory, there is a libMySQL (the best combination with PHP ). dll file, copy it to the system32 folder of the system, and copy php (as the mainstream development language ). ini to the windows directory

It will be online tutorials in the future... no way, lazy ..

Php (as the mainstream development language ). ini is stored in c: winntsystem32. php (as the mainstream development language) can be parsed. mySQL (the best combination with PHP) can also run normally. I started iis (Microsoft's WEB server platform. port 80 is occupied, so I chose port 8080 when installing apache (the most popular WEB server platform on Unix. it is not to load apache (the most popular WEB server platform on the Unix platform) into a service ..

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.