Frontier: Apache vs. IIS pros and cons
One, free and charge of the dispute:
Conclusion--apache free, IIS charges, the former accounted for excellent.
Second, Stability:
Conclusion--apache stability, IIS sometimes suspended animation, the former accounted for excellent.
Third, the expansion of:
Conclusion--iis can only run under Windows, Apache has a wide range of applications. Apache wins.
Iv. Security:
Conclusion--IIS6 Previous versions have security implications, and IIS6 is as safe and reliable as Apache. IIS6 a tie with Apache.
V. Openness:
Conclusion--iis is not open code, Apache open source code. The latter won.
Six, the ease of:
Conclusion--iis is easy to install but difficult to master, Apache installation is relatively difficult, to be proficient is not an easy thing. IIS has a slight advantage.
##### Body: windows+iis+mysql+php installation
The software used for this build is: Windows 2008R + IIS7 + MySQL 5.6 + php-5.6 + PHP acceleration software zendguard
mysql:https://downloads.mysql.com/archives/community/
Php-5.6:http://windows.php.net/downloads/releases
Zendguard:http://downloads.zend.com/guard/5.5.0/zendguardloader-php-5.3-windows.zip
Note: The previous installation steps, the subsequent append during the installation process problems and solutions.
Reference links are: https://www.osyunwei.com/archives/4525.html
Installation
IIS Installation
Because the IIS service is integrated into the Windows service, you need to add and open the role in Server Manager----Add roles!
The relevant authentication method is that after the installation is complete, a browser access to the http://localhost/interface is successful.
MySQL Installation
First, download
MySQL Server official: https://downloads.mysql.com/archives/community/
Second, installation
2.1 Modify the configuration file, copy the installation directory under My-default.ini Rename to My.ini. Open My.ini file configuration basedir with
DataDir, take my catalogue, for example: Basedir = C:\mysql-5.6
DataDir = C:\mysql-5.6
2.2 Run the cmd command as Administrator and go to the bin layer of the installation directory: CD C:\mysql-5.6
Enter after run: Mysqld-install, Command succeeds before running: net start MySQL start service.
2.3 Log in: CMD into the installation directory bin layer, run Mysql-u root-p Enter the password prompt for a return login success (after the initial installation, the root user password is empty).
Third, change the root password
Run the cmd command as Administrator and go to the bin layer CD of the installation directory C:\mysql-5.6
After entry run: mysqladmin-uroot-p password Redhat
Enter because the current password is empty
Set a new password (Redhat) success! Subsequent use of Redhat login database can!
PHP Installation
First, download
: Https://windows.php.net/download
Second, installation
2.1 Extract the downloaded file php-5.6 (after mysql-5.6.10-winx64 renamed) and unzip it into the corresponding directory. My side put is C:\php-5.6 2.2 decompression zendguardloader-php-5.3-windows.zip; Copy the ZendLoader.dll file into the C:\php-5.6\ext directory. 2.3 Open C:\php-5.6 copy php.ini-development to PHP.ini Open php.ini with Notepad and make the following modifications: Extension_dir = "D:\php\ext" #设置php模块路径 Date.timezone = PRC #设置时区为中国时区 Short_open_tag = on #php支持短标签 cgi.force_ redirect = 0 #开启以CGI方式运行php fastcgi.impersonate = 1; Cgi.rfc2616_headers = 1 2.4 Add the following code on the last line [Zendguardloader] zend_loader.enable=1 Zend_ Loader.disable_licensing=1 zend_loader.obfuscation_level_support=3 zend_loader.license_path= zend_extension= "C:\php-5.6\ext\ZendLoader.dll" 2.5 Finally, save exit
Third, the configuration of IIS support PHP (specific information can be viewed https://www.osyunwei.com/archives/4525.html, information modified to their own on it!) )
3.1 Start-Administrative Tools-Internet Information Services (IIS) Manager
3.2 Double-click the computer name under "Start Page" on the Left
Locate the middle IIS section and open the handler mappings
Add module map to the right of the 3.3 point
3.4 Request Path: *.php
Module: Fastcgimodule
Executable file (optional): D:\php\php-cgi.exe
Name: FastCGI
Finally, determine
Double-click the computer name under "Start Page" on the Left
Locate the middle IIS section and open the "FastCGI settings"
Right-click to select: C:\php-5.6\php-cgi.exe then select Edit #这里如果找不到php-cgi.exe, you need to select the type EXE, you can find.
To monitor changes made to a file: C:\php-5.6\php.ini
environment variable, "..." next to the dot
Name:php_fcgi_max_requests
value:10000
Are you sure
Test
Create a new index.php file
The contents are as follows:
<?php
Phpinfo ();
?>
Finally, save the exit
Open http://localhost/index.php inside the browser
The following interface appears, indicating that the configuration was successful!
At this point, the Windows Server R2 IIS7 + PHP5.6 (FastCGI) + MySQL5.6 Environment Build tutorial is complete.
The problem and how to solve it
1, after the installation is complete, the browser access http://localhost/index.php 500 error,
The cause of the problem and the solution: The problem is that "the startup program on the computer is missing MSVCR110.dll";
Solution:
For the Microsoft Visual C + + 2012 Redistributable Component, run the Modify installer repair feature by starting the installer from the following Microsoft Download Center Web site:
https://www.microsoft.com/en-us/download/confirmation.aspx?id=30679
In the Modify Setup dialog box, click Repair.
After the repair process is complete, restart the computer if you are prompted to do so.
After installing Vcredist_x64.exe, restart the IIS Web site service and visit again!
windows+iis+mysql+php Installation