First, a brief introduction
With the popularity and popularity of online marketing, especially through the network to bring benefits and profits to the enterprise, more and more people are aware of the tradition In addition to the sales and promotion model, if the use of network resources to bring profits to enterprises has become an urgent problem for enterprises, many companies and individuals have now set up their own servers. The current server market is divided into several systems, the first is the Windows platform, the second is the Linux platform, and the rest is mainly based on the BSD platform. First introduce the advantages and disadvantages of various platforms:
The advantages of the Windows platform are that it is relatively easy to build and maintainable. Through a short period of training, you can build a variety of what you need. service. The disadvantage is that there are many Windows security vulnerabilities. If there is no security-conscious administrator to maintain the server, it will soon be invaded, and the stability of the server is not flattering.
The advantages of Linux and BSD platforms are the fine division of permissions, and the stability of the server is well known. So many large enterprises prefer Linux and BSD platforms. However, the disadvantage is that it is difficult to maintain and is not suitable for small and medium-sized companies. Because it takes a lot of money and time to train a versatile Linux and BSD system administrator.
Second, the actual PHP PHP + MySQL + IIS security platform to build
(a) Install IIS
1. Install IIS
When we finished After the system is installed, we may not have IIS installed by default, so we need to install IIS. First put the system disk into the CD-ROM drive, then we click on the "Start" menu -> "All Programs" -> "Administrative Tools" -> "Manage Your Server".
2.Add Roles
In the "Manage Your Server" window, you can see the three things "Add and Remove Roles", "Manage File Servers" and "Add Shared Folders". The main utility function module, as shown in Figure 1, click "Add and Remove Roles" to start configuring and managing the server.
Figure 1 Using the Add and Remove Role Management Server
3. Configuring the Server Role
In the pop-up dialog box Click "Next", the configuration wizard starts to find some of your installed environment, as shown in Figure 2, you can configure file server, print server, application server, mail server, terminal server, VPN server, DHCP server, stream Media server and WINS server, in short, Microsoft Windows2003Server has greatly improved management than Windows2000Server, making configuration easier. You can see which servers are configured in Figure 2.
Figure 2 Configuring the server role
1 >>
4. Configuring the application server
Here we select the application server (IIS, asp.net), and then click the "Next" button, there are 2 options in the interface shown in Figure 3, the first "FrontPageServerExtension" is generally not used It is recommended not to choose it for security reasons. The second "Enable Asp.net" is to enable asp.net support. If your program is asp.net, you need to select "Open asp.net" and then click the "Next" button to install it. . The installation speed is very fast, after the installation is complete, we can run IIS, click "Start" menu -> "All Programs" -> "Administrative Tools", add an "IIS server" in the management tool Manager, which means that our installation is successful. If there is no such option, please repeat the above steps to continue the installation or reinstall.
Figure 3 Server Enable Asp.net Support
(2) Download the latest mysql and php and install
1 Download Mysql
We downloaded the latest version from www.mysql.org 6.0.8
2. Download Php
If there is no PHP in the local, you can go to the download address of Php. Go to download
Why do we want to download the latest version, because the latest version of the hacker research is relatively safe, it is relatively safe. The installation process is very simple, there is not much nonsense directly following the default installation. Here I will install php to the D:php directory, and I will explain in detail how Mysql is configured.
(3) PHP basic preparation work
1. Select the configuration PHP.ini file
After the PHP installation is completed (in fact, the compression package is decompressed, there are also Kind of Microsoft's msi step by step installation, I have not tried), we first came to the php installation directory, we can see two php.ini files here, namely php.ini-dist and php. Ini-recommended. We'd better choose php.ini-recommended, because this file is php officially optimized file. We renamed this file to php.ini and copied it to the C:windows directory.
2. Copy the Libmysql.dll library file to the system
Copy libmysql.dll to the system directory in order to allow the PHP program to connect to the MYSQL database. If you are not using mysql, you do not need to copy it. Copy the Libmysql.dll file in the "D:php" directory to the "C:windowssystem32" directory.
3. Configure the php.ini file
We go to "C:windows" to find the php.ini file, we need to edit a few parameters, so that php can find the components we need, for example Mysql library, gd library support, etc.
(1) Modify the extension_dir parameter. As shown in Figure 4, we first find extension_dir="./" to change this to extension_dir="D:/php/ext", which must be changed to its own configuration environment, otherwise it will not succeed.
Figure 4 Modify the extension_dir parameter
(2) Load the module you need to use. Load the required modules according to the actual situation. In this configuration environment, we need to load the mysql module, gd module, and mcrypt module. As shown in Figure 5, it is our modified situation. The work we do is just to remove the semicolon in front of ";extension=php_openssl.dll". Of course, what modules do you need to remove the corresponding quotes.
Figure 5 Load the module you need to use
Description:
(1) ".php" can and any The database is connected and works very well, for example, the most classic is mysql, followed by mssql, ORACLE and other databases. If your operating environment is not selected by Mysql, then you must modify the corresponding module, such as mssql The corresponding module is php_mssql.dll, ORACLE corresponding module php_oci8.dll and so on.
(2) GD module, the role of loading it is to support the graphics, said that everyone understands the function of watermarking such as Discuz.
(3) mysql is a module that supports the Mysql database must be loaded.
(4) mcrypt module is the module required by Phpmyadmin. If you feel that managing mysql manually, and feel that downloading software is also more troublesome, you can download a phpMyAdmin, a very powerful mysql management tool.
Site FTP Parameter Settings: FTP is connected to the server and some settings are required to contro
In order to improve the performance of the server, many network administrators ha
Client DNS server address configuration steps (Windows 2000, Windows XP operating system): 1, afte
On the article about script intrusion, the Internet is already flooding. Although there are many ori
How does the T100 G11 server clear CMOS?
Notes on sending attachments in windows server 2003?
IIS website anti-theft chain download solution
A case where the server security dog caused an ASP.NET website to run incorrectly
Teach you how to debug the IIS Information Server
Why does the Linux server log in and displays the "-bash-3.2#"
Server dual network card settings
Establishing a DNS server on Linux (3)
Experts answer the network management FAQ: How to remotely restart the server
RAID disk array technology and data recovery principle
Is the server board compatible with normal memory?
Talking about how small and medium-sized enterprises view server performance design
Win7 automatically opened after downloading compressed files
Win7 disable usb port, win7 disable u disk software, win7 disable usb storage tool method
Win10 first anniversary update cumulative update 14393.187 or will be released on September 14
Tip: Set XP auto-restart when system deadlock and resource manager crash
When does the DNF national service 2015 second activity start? Activity introduction
Linux diskless boot method detailed
Win7 prompts "Intel (R) fast storage technology is not running" how to do
Win10 system startup slow how to solve