Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows+IIS+Mysql+php installation

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Frontier: comparison of advantages and disadvantages between Apache and IIS

First, the dispute between free and charging:

Conclusion-Apache is free, IIS is free, and the former is superior.

Second, stability:

Conclusion-APACHE is stable, IIS sometimes pretends to die, and the former is dominant.

Third, expansibility:

Conclusion-IIS can only run under windows, and apache has a wide range of applications. Apache wins.

4. Security:

Conclusion-previous versions of IIS6 have security risks, and IIS6 is as safe and reliable as APACHE. IIS6 tied with APACHE.

5. Openness:

Conclusion-IIS does not open code, APACHE open source code. The latter won.

6. Difficulty:

Conclusion-IIS is easy to install but difficult to master, APACHE installation is relatively difficult, to master is not an easy task. IIS has a slight advantage.

# body: Windows+IIS+Mysql+php installation

The software used in this construction is windows 2008R 64 + IIS7 + mysql 5.6 + php-5.6 + PHP acceleration software ZendGuard.

Mysql download address: https://downloads.mysql.com/archives/community/

Php-5.6 download address: http://windows.php.net/downloads/releases

ZendGuard download address: http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip

Note: the previous installation steps, the subsequent addition of the problems in the installation process and the solutions.

The reference link is: https://www.osyunwei.com/archives/4525.html

Installation

IIS installation

Because IIS services are integrated into windows services, you need to add and open them in Server Manager-- > roles-- > add roles!

The relevant verification method is that after the installation is completed, accessing the http://localhost/ through the browser will be a success.

Mysql installation

First, download

Official download address of mysql server: https://downloads.mysql.com/archives/community/

II. Installation

2.1Modify the configuration file, copy the my-default.ini in the installation directory and change it to my.ini. Open the my.ini file to configure basedir and

Datadir, take my directory as an example: basedir = C:\ mysql-5.6

Datadir = C:\ mysql-5.6

2.2 run the cmd command as an administrator and enter the bin layer of the installation directory: cd C:\ mysql-5.6

After entering, run: mysqld-install, and then run: net start mysql start the service after the command is successful.

Login: cmd enters the bin layer of the installation directory and runs mysql-u root-p to prompt you to enter the password and log in successfully again (after the initial installation, the root user password is empty).

Change the root password

Run the cmd command as an administrator and enter the bin tier cd C:\ mysql-5.6 of the installation directory

Run after entering: mysqladmin-uroot-p password redhat

Enter because the current password is empty

Set the new password (redhat) successfully! Use redhat to log in to the database later!

PHP installation

First, download

Download address: https://windows.php.net/download

II. Installation

2.1 decompress the downloaded file php-5.6 (after mysql-5.6.10-winx64 is renamed) and place it in the corresponding directory. What I put here is C:\ php-5.6 2.2 decompress ZendGuardLoader-php-5.3-Windows.zip Copy the ZendLoader.dll file inside to C:\ php-5.6\ ext directory, open C:\ php-5.6 copy php.ini-development for php.ini, open php.ini with notepad and modify it as follows: extension_dir = "D:\ php\ ext "# set php module path date.timezone = PRC # set time zone to China time zone short_open_tag = On # php support short label cgi.force_redirect = 0 # enable running in CGI mode php fastcgi.impersonate = 1 Cgi.rfc2616_headers = 1.2.4 add the following code [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 on the last line, save exit

Third, configure IIS to support PHP (for specific screenshot information, you can check https://www.osyunwei.com/archives/4525.html, and modify the information to your own! )

3.1 start-Administrative tools-Internet Information Services (IIS) Manager

3.2 double-click the computer name under the start page on the left

Find the middle IIS section and open Handler Mapping

3.3 "add module mapping" on the right

3.4 request path: * .php

Module: FastCgiModule

Executable file (optional): d:\ php\ php-cgi.exe

Name: FastCGI

Finally, make sure

Double-click the computer name under the start page on the left

Find the middle IIS section and open "FastCGI Settings"

Right-click: C:\ php-5.6\ php-cgi.exe and select Edit # here if the php-cgi.exe cannot be found; if you need to select the type exe, you can find it.

Monitor changes to the file: C:\ php-5.6\ php.ini

Environment variable, click "."

Name:PHP_FCGI_MAX_REQUESTS

Value:10000

Confirm

test

Create a new index.php file

The contents are as follows:

Finally, save exit

Open http://localhost/index.php in the browser

The following interface appears, indicating that the configuration is successful!

At this point, the Windows Server 2008 R2 IIS7 + PHP5.6 (FastCGI) + MySQL5.6 environment building tutorial is complete.

Problems and solutions

1. 500 error occurred when the browser accesses http://localhost/index.php after the installation, as shown in the figure:

The cause of the problem and the solution: the problem is due to the loss of MSVCR110.dll in the startup program on the computer.

Solution:

Run the modify installer repair function for Microsoft Visual C++ 2012 redistributable components and launch the installer from the following Microsoft download center website:

Https://www.microsoft.com/en-us/download/confirmation.aspx?id=30679

In the modify installer dialog box, click repair.

Restart your computer after the repair process is complete, if prompted to do so.

Restart the IIS website service after installing vcredist_x64.exe and visit it again!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report