Iis8 + php environment setup

Source: Internet
Author: User
: This article describes how to build the iis8 + php environment. if you are interested in the PHP Tutorial, refer to it. First use this article to build the environment

Http://jingyan.baidu.com/article/5bbb5a1b35511c13eba17912.html

Then an error is reported: Running fails.

New solution win8.1 system IIS appears "HTTP error 500.0, C: \ php \ php-cgi.exe-FastCGI process unexpectedly exited"


Then I found this article.

Http://www.yishimei.cn/network/505.html

Then we solved the problem.

Expand another PHP environment

Those who learn about website construction and server environment configuration often use IIS that comes with windows. by default, windows only supports the combination of IIS + asp or aspx, however, sometimes our website programs are php, and we need to use the php + mysql environment at this time, which is common in linux environments, but what if we don't know the linux technology and have no linux system at hand? Of course, it is to find a way to enable the windows system's built-in IIS to support the PHP + Msql environment. In fact, there are already many such tutorials on winxp and win7 systems, however, there are not many tutorials on win8/8.1 systems, today, the US network editor explains how to build an IIS + PHP + Msql + phpMyAdmin environment on the win8/8.1 system with a legend!

Preparation tools: win8/8.1 system, PHP program, mysql database, and database visual management tool phpMyAdmin.

Step 1: Add the IIS function on win8/8.1

This tutorial has been discussed before. For more information, see: How to install and enable IIS on win8.1.

Step 2: Download and configure the PHP program

64-bit PHP program download: http://windows.php.net/downloads/releases/php-5.6.5-Win32-VC11-x64.zip

32-bit PHP program download: http://windows.php.net/downloads/releases/php-5.6.5-Win32-VC11-x86.zip

Here, we will explain how many php programs are downloaded from your system. I am a 64-bit system, so I downloaded a 64-bit php program.

Download the compressed package, decompress it to drive C, and rename the folder to php, such as C: \ php. then find the php. ini-development file in it and copy it to the desktop.

After copying it to the desktop, change it to php. ini. Open it in Notepad: (use Ctrl + F to find the following items)

Modify the time zone:

Date. timezone = "Asia/Shanghai" (remove the ";" sign before it)

Activation extension:

Extension = php_gd2.dll (remove the ";" sign at the beginning)

Extension = php_mbstring.dll (remove the ";" sign at the beginning)

Extension = php_mysql.dll (remove the ";" sign at the beginning)

Extension = php_mysqli.dll (remove the ";" sign at the beginning)

Extension = php_pdo_mysql.dll (remove the ";" sign at the beginning)

Configure the dll file path:

Extension_dir = "C: \ php \ ext \" (remove the first)

After modifying the preceding project, save the php. ini file and copy it to C: \ Windows.

Step 3: Configure IIS and make it support php

Open Control Panel-system and security-administrative tools-Internet information service (IIS) manager-handler ING, as shown in:

Double-click "handler ing ",

After opening, find "add module ing" on the right side, and click "open", as shown in:

Enter * in "request path *. php, "module" select FastCgiMoudle, "executable file" select "C: \ php \ php-cgi.exe", "name" fill in PHP and then click "OK ".

Click "yes.

After this configuration, IIS supports php extension. now we need to add the default documents "index. php" and "default. php" to the website.

OK, php configuration has been completed. now let's test the result. in the root directory of the website (my website root directory: C: \ inetpub \ wwwroot.pdf, create a new file named index.txt, and enter After saving, change the file extension to php, that is, index. php, and then open localhost or 127.0.0.1 in the browser. if the php version, system version, and other information appears, the php environment is successfully configured.

Here, we will share with you one thing: when a new deployment is created, it depends on whether the extension name .txt is displayed. if the extension name is not displayed, set the file extension. It is not displayed by default. Otherwise, it is also a white change.

If the Error "HTTP Error 500.0-Internal Server Error C: \ php \ php-cgi.exe-FastCGI process unexpectedly exited" occurs during running, check whether the visual C ++ 2012 or 2013 runtime library is installed on your computer. If not, install the vc ++ runtime library before troubleshooting.

32-bit Microsoft Visual C ++ Redistributable 2012 Download: http://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x86.exe

64-bit Microsoft Visual C ++ Redistributable 2012 Download: http://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x64.exe

For details, refer to: New solution win8.1 system IIS "HTTP error 500.0, C: \ php \ php-cgi.exe-FastCGI process unexpectedly exited"

Step 4: Download and install and configure the Mysql database

32-bit mysql: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22-win32.zip

64-bit mysql: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22-winx64.zip

Like the php program, you have a 64-bit mysql database installed on a number of systems. I use a 64-bit mysql system.

The installation process is very simple. you can simply unzip the package and install it. I will not go into details here.

Let php support mysql database extension, copy C: \ Program Files \ MySQL Server 5.5 \ lib \ libmysql. dll to the C: \ WINDOWS \ SYSTEM32 directory. after copying, restart IIS.

Step 5: Download and install and configure the database management tool-phpMyAdmin

PhpMyAdmin: http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.3.8/phpMyAdmin-4.3.8-all-languages.zip

After the download is complete, decompress the package, create a folder named phpMyAdmin on drive C, and copy all the extracted content to phpMyAdmin.

Create a virtual directory in IIS and point to C: \ phpMyAdmin.

Next we can check the results of all the above work. open the browser and enter http: // localhost/php in the address bar:

If shown in, congratulations! Start your website journey!


The above section describes how to set up the iis8 + php environment, including related content, and hope to help those who are interested in the PHP Tutorial.

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.