Windows system + Apache + PhP5 + Zend + MySQL + phpMyAdmin installation and configuration method

Source: Internet
Author: User
Tags administrator password

Install Apache 2.2.4

1. Open my computer, go to drive D, create a folder P8-Server under it, and then create a local folder 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 install Program Enter 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. The following two options are available: use the default port 80 and automatically start the system service; the other is only for the current user to install, use port 8080, and start manually. Generally, select the first default port 80.
4. After entering next, select the installation type, typical as the default installation, and custom as the custom installation. Here we select Custom for more options. The default installation path is "C: \ Program Files \ Apache Software Foundation \ apache2.2 \", change the path to "D: \ P8-Server \ Local \ apache2" as described above ".
5. Then go all the way until the installation is complete; then, open the local folder of the P8-Server under drive D, you can 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 (it works !); After the installation is complete, the web page is located in the "D: \ P8-Server \ Local \ apache2 \ htdocs" directory.
If you want to change the location where the web page is stored to: D: \ P8-Server \ wwwroot, first create the folder: wwwroot under D: \ P8-Server \, and then modify the three files:
D: \ P8-Server \ Local \ apache2 \ conf \ httpd. conf
D: \ P8-Server \ Local \ apache2 \ conf \ Default \ httpd. conf
D: \ P8-Server \ Local \ apache2 \ conf \ Default \ httpd-ssl.conf
Change to the following two places:
DocumentRoot "D:/P8-Server/local/apache2/htdocs"
<Directory "D:/P8-Server/local/apache2/htdocs">
Changed:
DocumentRoot "D:/P8-Server"
<Directory "D:/P8-Server">
After modification, it takes effect only after Apache is restarted.

Install PHP 5.2.1

1. download the php-5.2.1-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 many limitations, so it is not recommended .)
2. Extract the PHP file to a directory with the directory address "D: \ P8-Server \ Local \ PhP5 ".
3. set PHP under the PHP Directory (D: \ P8-Server \ Local \ PhP5. copy ini-Dist to the Windows directory (some systems are winnt Directories) and change the name to PhP. ini.
4. Copy all DLL files under the D: \ P8-Server \ Local \ PhP5 directory to the Windows system folder, that is: c: \ windows \ system32.

Install MySQL 5.0.27

1. Open my computer, enter D: \ P8-Server \ local, and create a new folder named mysql5.
2. Download MySQL 5.0.27 installer from its official site and run it.
3. Press next and select the M 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: \ P8-Server \ Local \ mysql5 \".
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. Now start to install the final configuration. 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 character set below.
11. Next, check before include bin directory in Windows path.
12. Next, create the database super administrator password.
13. Add execute to the last next and you can see that all the above steps have been completed.
14. The MySQL account is root, and the password is created by yourself just now.
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, enter the password you just created and 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.
16. The operator is changed to "mysql>". Enter exit to exit.

Installing Zend optimizer 3.2.0

1. Open my computer, enter D: \ P8-Server \ 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 the path selection, Click Browse, the default is "C: \ Program Files \ Zend \ ZendOptimizer-3.2.0", change it to "D: \ P8-Server \ 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.

Configuration of Apache and PHP

1. Start Apache HTTP Server 2.2.4 of the program in the menu and go to configure Apache server next level. Then you can see the edit the Apache httpd. conf configuration file. Click.
2. Search for: # loadmodule ssl_module modules/mod_ssl.so
3. Add loadmodule php5_module "D:/P8-Server/local/PhP5/php5apache2_2.dll" below"
4. Search: directoryindex index.html
5. Replace: directoryindex index.html index.htm index. php default. php
6. Search for addtype application/X-gzip. GZ. tgz
7. Add addtype application/X-httpd-PHP. php below
8. After Apache configuration is complete, configure PHP and use NotePad to open C: \ WINDOWS \ PHP. ini.
9. Search: extension_dir = "./"
10. Replace: extension_dir = "D:/P8-Server/local/PhP5/EXT /"
11. Search: upload_max_filesize = 2 m
12. 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.
13. Search:; Extension = php_mbstring.dll
14. Remove the minus sign.
15. Search:; Extension = php_mcrypt.dll
16. Remove the minus sign.
17. Search:; Extension = php_gd2.dll
18. Remove the marker.
19. Search:; Extension = php_mysql.dll
20. Remove the marker.
21. Search:; date. timezone =
20. Replace: Date. timezone = PRC
22. 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.

Install phpMyAdmin 2.9.2

1. Download The phpMyAdmin-2.9.2.zip from its official site and unzip it, change the directory name phpMyAdmin, and copy it to "D: \ P8-Server \ wwwroot ".
2. Edit: config. Default. php under libraries.
3. Search:
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
Changed:
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';

find $ cfg ['servers'] [$ I] ['user'] = 'root';
change:
$ cfg ['servers'] [$ I] ['user'] = '';
4. find: $ cfg ['defaultlang '] = 'en-iso-8859-1';
5. replace: $ cfg ['defaultlang '] = 'gb2312';
6. search: $ cfg ['defaultcharset'] = 'iso-8859-1 ';
7. replace: $ cfg ['defaultcharset'] = 'gb2312 ';
8. search: $ cfg ['blowfish _ secret'] = '';
Replace: $ cfg ['blowfish _ secret'] = 'php168. com ';
9. the settings are complete. Open IE and enter "http: // localhost/phpMyAdmin.

Related Article

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.