Windows System + Apache +PHP5 +zend + MySQL + phpMyAdmin Installation Configuration method _win Server

Source: Internet
Author: User
Tags win32 zip administrator password phpmyadmin zend

installation of Apache 2.2.4

1. Open My Computer, enter D disk, under which a new folder P8-server, under which it is built in the local folder.
2. Download Apache_2.2.4-win32-x86-no_ssl.msi to its official site and execute it.
3. Press the Next button 3 times, the installer requires you to enter your network domain (network domain name), server domain (server domains) and webmaster e-mail, and some words to fill in truthfully, this note describes the local self-built test environment, so casually, The first two fill localhost, mail write their own can. There are two options below. Use the default 80 port and start automatically as a system service, and the other is to install only for the current user, using port 8080, to start manually. Typically select the first default 80 port.
4. After entering next, choose the installation type, typical for the default installation, custom for the user to customize the installation, we choose custom here, there are more options available. The default installation path is "C:\Program files\apache Software foundation\apache2.2\", modify the path, and change to "D:\P8-Server\local\Apache2" as described earlier.
5. Then go all the way to the end of the installation; At this point, open the local folder under P8-server under D disk, and you can see a folder named Apache2.
6. Open IE, and then enter in the Address bar: "http://localhost" or "http://127.0.0.1" can see the success of the Apache installation Completed page (It works!) The location of the Web page in the "D:\P8-Server\local\Apache2\htdocs" directory after the installation is complete.
If you want to change the location of the Web page to: D:\P8-Server\wwwroot, first create the folder under D:\P8-Server\: Wwwroot, 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 two places:
DocumentRoot "D:/p8-server/local/apache2/htdocs"
<directory "D:/p8-server/local/apache2/htdocs" >
To
DocumentRoot "D:/p8-server"
<directory "D:/p8-server" >
It will not take effect until you restart Apache


installation of PHP 5.2.1

1. Download Php-5.2.1-win32.zip to its official site and extract (do not download and use it in this installer, although it is very automated, very intelligent, but there are many aspects of the restrictions, it is not recommended. )
2. Extract the PHP file into a directory with the directory address "D:\P8-SERVER\LOCAL\PHP5".
3. Copy the php.ini-dist from the PHP directory (D:\P8-SERVER\LOCAL\PHP5) to the directory of Windows (some systems are WINNT directories) and rename it to PHP.ini.
4. Copy all the DLL files in the D:\P8-SERVER\LOCAL\PHP5 directory into the Windows system folder, namely: C:\windows\system32.

installation of MySQL 5.0.27

1. Open My Computer, enter D:\P8-Server\local, and create a new folder under it named MySQL5.
2. Download Mysql 5.0.27 Installer to its official site and execute it.
3. Press Next, then choose Custom Installation mode.
4. Click Change, changing the installation path; The original path is "C:\Program files\mysql\mysql Server 5.0\", which is changed to: "D:\P8-Server\local\mysql5\".
5. When the installation progress bar load, there will be a Sign up wizard, here do not need to, choose the bottom of the skip sign-up, then Next, there is a "Configure the MySQL Server Now" is ticked, do not remove, Direct point finish.
6. Now start installing 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, the number of connections selected 200 to 300, this is not important because it is a native test.
9. Next, set its port, the default is 3306, do not move it.
10. Next, select Manual Selected Default Character set/collation, and select Character in the GBK Set below.
11. Next, tick before include Bin Directory in Windows path.
12. Next, create the database Super Administrator password.
13. The last next plus execute, you can see that the steps above are complete.
The 14.MySQL account number is: root, the password is you just created.
15. Test MySQL, keyboard win + R, pop-up Run dialog box, input cmd back into the command prompt, and then enter: "Mysql-uroot-p", enter the password after entering the request, enter the password you just created, and then press ENTER. You can now see the following success tips:
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.
Indicates that all installations were successful.
16. Operator becomes "mysql>", type exit exit.


installation of Zend Optimizer 3.2.0

1. Open My Computer, enter D:\P8-Server\local, and create a new folder under it named Zend.
2. Download Zendoptimizer-3.2.0-windows-i386.exe to its official site and execute it.
3. Press Next, to the path selection, click Browse, Default is "C:\Program files\zend\zendoptimizer-3.2.0", modify it to "D:\P8-Server\local\zend".
4. After pressing next, you can see the choice of the server, where the Aapche 2.2.4 has just been installed, so in one of the items named "Apache 2.x", press it, and then click Next.
5. Next all the way, next, all the default settings, and then install.
6.Zend installation complete.


Apache vs. PHP configuration

1. Start Menu program Apache HTTP Server 2.2.4, then go to the next level of configure Apache server, you can see that edit the Apache httpd.conf Configuration File. Point.
2. Find: #LoadModule ssl_module modules/mod_ssl.so
3. Add below: LoadModule php5_module "D:/p8-server/local/php5/php5apache2_2.dll"
4. Find: DirectoryIndex index.html
5. Replacement: DirectoryIndex index.html index.htm index.php default.php
6. Find: AddType application/x-gzip. GZ tgz
7. Add below: AddType application/x-httpd-php. php
8.Apache configuration finished, now start PHP configuration, with Notepad open C:\windows\php.ini.
9. Find: Extension_dir = "./"
10. Replacement: Extension_dir = "d:/p8-server/local/php5/ext/"
11. Find: Upload_max_filesize = 2M
12. Here means to modify the maximum limit of uploaded files, the default is 2M, you can change to 6M.
13. Find:; extension=php_mbstring.dll
14. Remove the front number.
15. Find:; extension=php_mcrypt.dll
16. Remove the front number.
17. Find:; extension=php_gd2.dll
18. Remove the front number.
19. Find:; extension=php_mysql.dll
20. Remove the front number.
21. Find:;d Ate.timezone =
20. Replacement: Date.timezone = PRC
22. File modification completed, at this time, double-click the lower right corner of the taskbar's Apache icon, pop-up window, point stop stop service, and so on stop and then click Start Service, at this point, you can see its window status bar will show: "apache/2.2.4 (WIN32) php/ 5.2.0 ". The configuration is all complete.


installation of phpMyAdmin 2.9.2

1. Download the Phpmyadmin-2.9.2.zip to its official site and unzip it, and change the directory name to phpMyAdmin and copy it to "D:\P8-Server\wwwroot".
2. Editor: Libraries under the config.default.php.
3. Find:
$cfg [' Servers '] [$i] [' auth_type '] = ' config ';
To
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';

Find $cfg[' Servers ' [$i] [' user '] = ' root ';
instead:
$cfg [' Servers '] [$i] [' user '] = ';
4. Find: $cfg [' defaultlang '] = ' en-iso-8859-1 ';
5. Replacement: $cfg [' defaultlang '] = ' gb2312 ';
6. Find: $cfg [' defaultcharset '] = ' iso-8859-1 ';
7. Replacement: $cfg [' defaultcharset '] = ' gb2312 ';
8. Find: $cfg [' blowfish_secret '] = ';
Replace: $cfg [' blowfish_secret '] = ' php168.com ';
9. Setup complete. Now open IE, type: "Http://localhost/phpmyadmin", you can do related operations.

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.