Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
I. System agreement
Environment software download after storage location: X:\Server_Tools
Environment Software Installation Location: X:\Server_Core
PHP Installation Location: X:\Server_Core\PHP
MySQL Installation Location: X:\Server_Core\MySQL
IIS Web site root directory: X:\wwwroot
MySQL Database Location: X:\Database
PHP.ini Storage location: X:\Windows\php.ini
My.ini Storage location: X:\Server_Core\MySQL\my.ini
Second, the system environment inspection and preparation of the required software
1. Check that the system has IIS installed
Click: Start-Administrative Tools, check for Internet Information Services (IIS) Manager
2. View disk partition capacity and determine usage policy
Open My Computer to view the free space capacity of each disk partition except C, using a larger disk partition as the Web root, and the MySQL database storage directory (database), as far as possible from the same disk partition as the Web root. A smaller disk partition can be used as the installation directory partition for the service environment software.
3. Download environment software
All software downloads are stored in the Server_tools folder.
Mysql-essential-5.0.45-win32.msi
Php-5.2.4-win32.zip
Iii. Environmental Deployment
1. Install MySQL
(1) Installation software
Go to the X:\Server_Tools folder and double-click Mysql-essential-5.0.45-win32.msi, as shown in Figure 1:
Select Custom installation, as shown in Figure 2:
Click Change to modify the MySQL installation directory, as shown in Figure 3:
After the file copy installation completed, the MySQL Setup interface, click Finish. As shown in Figure 4:
Select Detailed revisit for detailed configuration, as shown in Figure 5:
Choose MySQL Run mode: Server Machine as shown in Figure 6:
Choose the MySQL database default storage mode: Non-trans only (MYISAM) as shown in Figure 7:
Set the maximum number of MySQL connections: General set to 128-512 between the integers. As shown in Figure 8:
Set MySQL network parameters, Note: Do not enable Strict mode! As shown in Figure 9:
Set the MySQL default character set: The language of the user's site prevail. As shown in Figure 10:
Windows environment settings, as shown in Figure 11:
Modify the Set root user password, note: Do not start remote connection mode! As shown in Figure 12:
Complete the MySQL installation and start the MySQL service. As shown in Figure 13:
(2) test whether the MySQL work is normal.
Open the cmd Command Prompt window and enter the command: Mysql–u root–p
Enter the password, if the normal access to the MySQL console, the MySQL installation is normal.
(3) Change MySQL database directory
A) Open the cmd Command Prompt window, enter the command: net stop MySQL server running MySQL service;
b) Open X:\Server_Core\MySQL\my.ini
Found it:
DataDir = "X:\Server_Core\MySQL\data"
Modified to:
DataDir = "X:\Database"
(c) Copy the X:\Server_Core\MySQL\data folder to the x:\ and rename it to X:\Database;
D Open the cmd Command Prompt window, enter command: net start MySQL to start MySQL service.
e re-test whether MySQL is working properly.
(4) Prepare libmysql dynamic link library
Copy the X:\Server_Core\MySQL\bin\libmySQL.dll file to C:\Windows\System32.
2. Install PHP
(1) Unzip the downloaded Php-5.2.4-win32.zip file and copy it to: X:\Server_Core\PHP;
(2) Enter the X:\Server_Core\PHP folder and rename the php.ini-dist to php.ini;
(3) Open php.ini file, find: Extension_dir = "./"
change it to;
Extension_dir = "X:\Server_Core\PHP\ext"
(4) Find: Windows Extensions
In the dynamic module configuration under Windows Extensions, you need to open the following module support: (remove the module configuration before each line;
Extension=php_mbstring.dll
Extension=php_gd2.dll
Extension=php_mysql.dll
(5) Find:
Disable_functions =
To:
Disable_functions = Phpinfo,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status , ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_ Server
(6) Save the php.ini file and copy it to C:\Windows\
3. IIS and PHP Consolidation configuration-Create a new web site
(1) Start IIS Manager and create a new Web site (virtual host), as shown in Figure 14 and 15:
(2) Enter the name of the website, change the name only for the identity in IIS, you can enter any. As shown in Figure 16:
(3) The website IP address does not need to fill in, the port if does not have the special request then maintains 80 then, finally correctly enters the website domain name. As shown in Figure 17:
(4) Establish wwwroot and subordinate site folder BBS in the site partition. As shown in Figure 18:
(5) For PHP applications, you need to give the site "read" and "Run Script" permissions. As shown in Figure 19:
(6) A new site has been successfully created. As shown in Figure 20:
4. IIS and PHP Consolidated configuration-Enables the site to support PHP
(1) Open the properties of the Web site you just established, as shown in Figure 21:
(2) In the Site Properties window, click the Home Directory tab, click the Configure button, and, in the newly ejected Application Configuration dialog box, click the Add button, join the ISAPI support for PHP, and select the executable file: X:\Server_Core\PHP\ Php5isapi.dll, extension. php, restricted action: Get,post. Click OK to add and view in the Application Configuration window. PHP extensions are successfully loaded. If successful, click OK to close the configuration window and return to the Site Properties main window. As shown in Figure 22:
(3) Click the document tab, add Index.htm, index.html, index.php three files to the default content document, and sort all default documents in order as shown in the following illustration. When you are done, click OK to close the Site Properties Configuration window and return to the IIS manager main interface. As shown in Figure 23:
(4) Right-click Web Service Extensions to add support for PHP extensions. As shown in Figure 24:
(5) in the "New Web Service Extensions" dialog box shown in the following figure, "extension" fills in PHP, "file" selects X:\Server_Core\PHP\php5isapi.dll, and sets the PHP extension to allow by default. As shown in Figure 25:
(6) Restart the IIS service, as shown in Figure 26 and 27:
5, test the PHP support is normal
The integration of IIS with PHP is complete, and the following needs to be tested to see if PHP support is normal.
(1) Enter the X:\wwwroot\bbs\ directory, create a new phpinfo.php file, the content is:
<?php
phpinfo ();
?> (2) Open IE Browser, input: http://www.domain.com/phpinfo.php;
(3) If the normal display of PHP support information will indicate that the configuration integration is successful.