Cy163 Note: Before you see this method, Apache + PHP installation has never been successful (MySQL was installed before ).
The reason for the installation failure is that the downloadPhp-5.3.0-nts-Win32-VC9-x86.zip PHP for Windows
Is an installation version. After installation, there is no php5apache2_2.dll file in the PHP Directory, and there is only one php5.dll file.
In addition, the downloaded php-5.3.0-Win32-VC9-x86.zip is also an installation version, under the PHP Directory has
Php5apache2_2-development.dll and php5apache2_2.production.dll two, I do not know the difference between the two is what, can not be used. See this articleArticleAnd then usePhp-5.2.11-Win32.zip this is a non-installed version,You only need to extract the downloaded compressed file to the specified folder..
==============================================
Www.quickapps.com.cn/windowsxp-php-apache-mysql-zend-configuration
Today, I set up a PHP environment on the local machine and recorded the process. The windows system configuration method is similar. The following describes the software used in this description:
Apache 2.2.4 -- www.apache.com
PHP 5.2.0 -- www.php.net
MySQL 5.0.27 -- www.mysql.com
Zend optimizer 3.2.0 -- www.zend.com
PhpMyAdmin 2.9.2 -- www.phpmyadmin.net
Note: Windows XP should not install IIS, PHP, Apache, MySQL, and Zend before performing the following operations.
Installation tips for Apache 2.2.4
1. Open my computer, enter drive D, and create a new folder M named local under it.
2. Go to its official site to download and execute the apache_2.2.4-win32-x86-no_ssl.msi.
3. Press the next button three times to installProgramEnter your network domain, server domain, and website administrator's e-mail address, this section describes the local self-built test environment. You can enter localhost In the first two cases and write your own email.
4. after entering next, the default installation path is "C: \ Program Files \ Apache Software Foundation \ apache2.2 \". Modify the path to "D: \ Local \ apache2" as described earlier ".
5. Go all the way until the installation is complete. Open the local folder on disk D and you will see a folder named apache2.
6. open IE and enter "http: // localhost" or "http: // 127.0.0.1" in the address bar to view the successful installation of Apache; the web page will be located in the "D: \ Local \ apache2 \ htdocs" directory.
≡ PHP 5.2.0 installation plugin
1. download the php-5.2.0-Win32.zip from its official site and unzip it (do not download and use its installer here. Although this method is automated and intelligent, there are also many restrictions because it is not recommended .)
2. decompress the PHP file to a directory named "D: \ Local \ PHP ".
3. Copy the php. ini-Dist under the PHP Directory (D: \ Local \ PHP) to the Windows directory (some systems are winnt Directories) and rename it PHP. ini.
4. Copy all DLL files under the D: \ Local \ PHP Directory to the Windows system folder, that is, c: \ windows \ system32.
Installing MySQL 5.0.27
1. Open my computer, enter D: \ local, and create a new folder named MySQL.
2. Download MySQL 5.0.27 installer from its official website and run it.
3. Press next and select the custom installation method.
4. click Change to change the installation path. The original path is "C: \ Program Files \ mysql \ MySQL Server 5.0 \". Here it is changed to "D: \ Local \ mysql \".
5. after the installation progress bar is loaded, a sign up Wizard will appear. You don't need to handle it here. Select the Skip sign-up at the bottom, and next, the above "configure the MySQL server now" is checked. Do not remove it. Click Finish directly.
6. Install the final configuration now. Click Next, select detailed configuration, and then select the second server machine.
7. Next, select non-transactional database only.
8. Next, select manual setting, and select 200 to 300 connections. This option is not important because it is a local test.
9. Next, set its port. The default value is 3306. Do not change it.
10. Next, select manual selected default Character Set/Collation, and select GBK in the following character set.
11. Next, check before include bin directory in Windows path.
12. Next, cancel the check before modify Security Settings because it is a local environment, not a server or virtual host.
13. Add execute to the last next, and you can see that all the above steps are completed.
14. The MySQL account is root and the password is blank.
15. check MySQL and press win + R on the keyboard. In the displayed dialog box, Enter cmd and press enter to enter the command prompt. Then, enter "mysql-uroot-P" and press enter to enter the password, because the password is empty, press Enter. Now you can see the following success prompt:
Welcome to the MySQL monitor. commands end with; or \ G.
Your MySQL connection ID is 1 to server version: 5.0.27-Community-NT
Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.
The installation is successful.
The operator is changed to "mysql>". Enter exit to exit.
≡ Zend optimizer 3.2.0 installation plugin
1. Open my computer, enter D: \ local, and create a new folder named Zend under it.
2. Go to its official site to download and execute the ZendOptimizer-3.2.0-Windows-i386.exe.
3. Press next to select the path, Click Browse, the default is "C: \ Program Files \ Zend \ ZendOptimizer-3.2.0", change it to "D: \ Local \ Zend ".
4. After clicking Next, you can see the server selection. Because aapche 2.2.4 is just installed, click "Apache 2.x" and click" Next.
5. Click Next next to all the default settings, and then install.
6. Zend installation is complete.
Configure Apache and PHP
1. Start Apache HTTP Server 2.2.4 of the program and go to configure Apache server next level. Then, you can see the edit the Apache httpd. conf configuration file. Click.
2. find:
# loadmodule ssl_module modules/mod_ssl.so
Add below:
loadmodule php5_module "D:/local/PHP/php5apache2_2.dll"
(where D: /local/PHP/php5apache2_2.dll is the path for installing PHP.
do not set php5apache2_2.dll and php5apache2. DLL and php5apache. DLL obfuscation. php5apache. DLL is only applicable to apache version 1.
php5apache2 in the PhP5 compressed package. DLL is only applicable to apache2.0. *, if it is 2. 2. * For the above version, php5apache2_2.dll must be used. otherwise,
"cannot load D: /Local/PHP/php5apache2_2.dll into server: the specified module cocould not be found. " or:
" the requested operation has failed " error message!
3. search:
directoryindex index.html
Replace:
directoryindex index.html index.htm index. PHP default. php
4. search:
addtype application/X-gzip. GZ. tgz
Add below:
addtype application/X-httpd-PHP. php
5. apache configuration is complete.
Configure PHP. ini as follows
Now, configure PHP and use NotePad to open C: \ WINDOWS \ PHP. ini.
6. Search:
Extension_dir = "./"
Replace:
Extension_dir = "D:/local/PHP/EXT /"
7. Search:
Upload_max_filesize = 2 m
This indicates the maximum limit for modifying the file to be uploaded. The default value is 2 MB, which can be changed to 6 MB.
8. Search:
; Extension = php_mbstring.dll
Remove the marker.
9. Search:
; Extension = php_gd2.dll
Remove the marker.
10. Search:
; Extension = mysql. dll (cy163 note:It seems to be php_mysql.dll)
Remove the marker.
11. Search:
; Date. timezone =
Replace:
Date. timezone = PRC
12. after the file is modified, double-click the Apache icon in the taskbar in the lower right corner. In the pop-up window, click STOP to stop the service, and then click Start to start the service, the status bar of the window shows "Apache/2.2.4 (win32) PHP/5.2.0 ". All configurations are complete.
≡ PhpMyAdmin 2.9.2 installation tips
1. Download The phpMyAdmin-2.9.2.zip from its official site and unzip it, change the directory name phpMyAdmin, and move to "D: \ Local \ apache2 \ htdocs ".
EDIT: config. Default. php under libraries.
2. search:
$ cfg ['servers'] [$ I] ['auth _ type'] = 'config'; // authentication method (config, HTTP or cookie based )?
$ cfg ['servers'] [$ I] ['user'] = 'root '; // MySQL user
$ cfg ['servers'] [$ I] ['Password'] = ''; // MySQL password (only needed
// With 'config' auth_type)
$ cfg ['servers'] [$ I] ['nopassword'] = false; // whether to try to connect Without Password
$ cfg ['servers'] [$ I] ['only _ db'] = ''; // If set to a DB-name, only
// This dB is displayed in left frame
// it may also be an array of DB-name S, where sorting order is relevant.
because it is a local test environment, the default value is used and does not need to be changed.
3. find:
$ cfg ['defaultlang '] = 'en-iso-8859-1';
4. replace:
$ cfg ['defaultlang '] = 'gb2312';
5. search:
$ cfg ['defaultcharset'] = 'iso-8859-1 ';
Replace:
$ cfg ['defaultcharset'] = 'gb2312 ';
6. the settings are complete. Open IE and enter "http: // localhost/phpMyAdmin.
Other descriptions
The MySQL account is root, and the password is null. Databases can be created on your own.
Webpage storage directory: D: \ Local \ apache2 \ htdocs \
Create an index. php file under the webpage with the following content:
<? PHP
$ Host = "localhost ";
$ User = "root ";
$ Password = "";
$ Link = mysql_connect ($ host, $ user, $ password );
If (! $ Link) echo "Else echo "Mysql_close ();
?>
Open http: // localhost/or 127.0.0.1 in the browser
If the output is successful, it means the result is complete.