Windows Server 2003 Server Environment Configuration Novice Concise version _win server

Source: Internet
Author: User
Tags character set file copy phpinfo win32 phpmyadmin website ip zend
first, the system agreed chapter

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
Zend Optimizer installation Location: X:\Server_Core\Zend
IIS Web site root directory: X:\wwwroot
MySQL Database Location: X:\Database
PHP.ini Storage location: Y:\Windows\php.ini
My.ini Storage location: X:\Server_Core\MySQL\my.ini
Note: X and y are the variables in this standard, x only represents the partition letter that the application actually holds, installs, and y is the partition letter of the system.

second, the system environment inspection and preparation of the required software articles

1. Check to see if the system has IIS installed
Click: "Start"-"Administrative Tools".

Check to see if there is " Internet Information Services (IIS) Manager, the installation of IIS components is recommended when the operating system is installed because the IIS components are brought in from the operating system disk . If it is not installed, you can download the corresponding operating system version of IIS on the network .


2 , view disk partition capacity, and determine usage policies


open My Computer to see the exception The free space capacity of each disk partition outside C, using a larger disk partition as the WEB root, and the MySQL database storage directory (database), try not to the WEB root is in the same disk partition. A smaller disk partition can be used as the installation directory partition for the service environment software.


Note: If special requirements are made, deploy as required.


3 , download environmental software

All software downloads are stored in Server_tools folder, download address:


Mysql-essential-5.0.67-win32.msi
http://dev.mysql.com/downloads/

Php-5.2.8-win32.zip

http://php.net/downloads.php

Zendoptimizer-3.3.3-windows-i386.exe

Http://www.zend.com/en/products/guard/zend-optimizer

Phpmyadmin-3.1.0-all-languages.zip

http://www.phpmyadmin.net/home_page/downloads.php


Note:php version 5.2.x, the new version of the better, the temporary use of php5.3 version, no special reasons, do not use php4 ,php Official no longer provide php4 support,MySQL version 5.0.x, the new version of the better, no special reasons without other versions, including 5.1, there may be bugs, PHP tries to use a green version that is not installed andMySQL uses the installed version as much as possible.


Third, the Environment deployment article

1 , installation MySQL 1 ) installation software

EnterX:\Server_Toolsfolder, double-clickMysql-essential-5.0.67-win32.msi;

Select Custom Installation

Click "Change" to modify MySQL installation directory

After the file copy installation completed, the MySQL Setup interface, click Finish.

Select detailed configuration for detailed configuration

Choose MySQL run mode: Server Machine

Choose MySQL database default storage mode: Non-trans only (MYISAM)

Set the maximum number of MySQL connections: General set to 128-512 between the integers.

Set MySQL network parameters, note: Do not check the Enable strict mode! The Addfirewall option is only checked when you need to connect to MySQL, which means adding a strategy to the firewall.

Set MySQL default character set: to the User site language, the default we fill GBK.

Windows environment settings

Modify the set root password, the root password please set more complex.

Note: Do not start remote connection mode if necessary! Complete the MySQL installation and start the MySQL service.

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 that you just installed, and if you can go to the MySQL console correctly, the MySQL installation is normal.

3) Change MySQL database storage directory

Open cmd Command Prompt window, enter command: net stop MySQL stop MySQL service running;

Open X:\Server_Core\MySQL\my.ini,
Found it:
DataDir = "X:\Server_Core\MySQL\data"
Modified to:
DataDir = "X:\Database"
Copy the X:\Server_Core\MySQL\data folder to X:\ and rename the X:\Database;
Open the cmd Command Prompt window,
Input command: net start MySQL
Start the MySQL service.
Re-test whether MySQL is working properly.

4) Mobile libmysql dynamic link library to system directory
Copy the X:\Server_Core\MySQL\bin\libmySQL.dll file to the Y:\Windows\System32 directory.
2, installation PHP1) decompression
Unzip the downloaded Php-5.2.8-win32.zip file and copy it to: X:\Server_Core\PHP;
2) Modify PHP.ini
Enter the X:\Server_Core\PHP folder and rename the php.ini-dist to php.ini;
Open the php.ini file and find:
Extension_dir= "./"
Change it to read:
Extension_dir= "X:\Server_Core\PHP\ext"
Found: Windows Extensions
In the dynamic module configuration below Windows extensions, the following module support needs to be turned on: (Remove the semicolon before each line of module configuration)
Php_gd2.dll
Php_mbstring.dll
Php_mcrypt.dll
Php_mhash.dll
Php_ming.dll
Php_mysql.dll
Php_openssl.dll
Php_sockets.dll
Php_xmlrpc.dll
Php_zip.dll
Found it:
disable_functions=
To
Disable_functions=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
Save the php.ini file and copy it to Y:\Windows
3, the integration of IIS and PHP configuration
1) Establish the website
Start IIS Manager, and create a new Web site (virtual host);


Enter the name of the Web site, changing the name to only the identity in IIS

The website IP address does not need to fill in, the port if does not have the special request then maintains 80 can, finally correctly enters the website domain name.

Establish Wwwroot and subordinate site folder BBS in the site partition

For PHP applications, you need to give the site "read" and "Run Script" permissions.

At this point, a new site has been successfully created.

2 The integration of IIS and PHP configuration

Open the site properties you just created

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, The extension is. php, and the restriction action is: 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.

Click the document tab to add Index.htm, index.html, index.php three files to the default content document, and sort all default documents in the order 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.

Right-click Web Service Extensions to add support for PHP extensions.

In the New Web Service Extensions dialog box as shown in the following illustration, the extension is filled in PHP, the file is selected X:\Server_Core\PHP\php5isapi.dll, and the PHP extension is set by default to allow.

Restart the IIS Service


At this point, the integration of IIS and PHP is complete.

3 Test whether PHP is installed correctly
Enter the X:\wwwroot\bbs\ directory and create a new phpinfo.php file, which reads:
<?php
Phpinfo ();
?>
Open IE Browser, input: http://www.domain.com/phpinfo.php;
Note: www.domain.com for your server domain name, this machine can fill in localhost
If you can display the PHP support information correctly, the configuration consolidation is successful.
4, installation Zend Optimizer
Enter the X:\Server_Tools folder, double-click the downloaded Zendoptimizer-3.3.3-windows-i386.exe file, the installation process is very friendly and relatively simple, so no more screenshots here to explain. However, the following points need to be noted:
Zend Optimzer installation directory to be specified as X:\Server_Core\Zend;
In the installation process prompts the location of the php.ini is to observe whether the Y:\Windows, if not must be manually designated as Y:\Windows;
The location of the root directory of the IIS Web site prompted during installation, specified as: X:\wwwroot;
The IIS service will be restarted automatically after the Zend optimizer installation is completed, and you will need to open the IE browser window again after the reboot, to view the phpinfo.php support information, to see if the Zend Optimizer support information is included, and if not, then Zend Optimizer did not install successfully!

Strictly follow the steps as above, the rookie will not have too much problem, such as puzzled, thread questions, always welcome the master to correct, to make this standard as a rookie to read, parents can operate the completed tutorial.

The relevant software can be downloaded to http://s.jb51.net.

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.