Win8.1 system to build iis8.5+php5.5.4 running environment Tutorial _win server

Source: Internet
Author: User
Tags configuration php php and phpinfo win32

Many people like to use Linux to build PHP Web language environment, but because Linux highly customizable, often need to run the root command, slightly high-end, relative to Microsoft's Windows operating system, the user experience is good, you can use Windows from the IIS components +php package To build a suitable operating environment. The Windows XP ERA was the iis6,win7 era, the Iis7.5,win8 era of IIS 8.0, with the same win8.1 built-in IIS components upgraded to 8.5, with higher execution efficiencies and a good user experience. The following small series to take everyone in the Win8.1 system configuration lap iis8.5+php5.5.4 operating environment.

Preparatory work:

PHP 5.5.4 Package, download 32-bit or 64-bit according to their system version respectively.

Website Introduction:http://windows.php.net/download/#php -5.5

VC11 x86 Thread Safe (2013-sep-18 23:44:17)
[17.84MB]

Download: Http://windows.php.net/downloads/releases/php-5.5.4-nts-Win32-VC11-x86.zip

VC11 x64 Thread Safe (2013-sep-18 23:44:20)
[19.11MB]

Download: Http://windows.php.net/downloads/releases/php-5.5.4-nts-Win32-VC11-x64.zip

Win8.1 9600 version, recommended by professional or Enterprise Edition.

Specific steps to operate:

First, open, set the win8.1 IIS 8.5 component server.

Go to Control Panel, select programs and features, turn windows on or off, find Internet informationServices, open FTP servers, Web management tools, and Web services components, In turn, the subcomponents of the World Wide Web service are turned on, "the most important of which is the application development feature," as shown in the following illustration.


After the installation is complete, reboot for automatic feature configuration

Open http://localhost or HTTP://127.0.0.1/in the browser to see if you can display the Welcome page for the IIS8.5 multi-language:

Download and install configuration PHP environment

VC11 x64 Thread Safe version of the compression pack (php-5.5.4-win32-vc11-x64), 1, extract it to the C:\PHP5 directory (other letter can also).

2, choose this computer, right key management, into the Computer Management



Select the services and applications on the left to access Internet Information Services (IIS) Manager

3, select the IIS feature "handler mapping" double-click to enter, and then rightmost select "Add Module mapping"



4, in the request path input "*.php", module select fastcgimodule mode, executable file, file format can choose EXE program and select the path: C:\php5\php-cgi.exe, name such as PHP, finally decided to add module mapping.




5. Then manually add the default documents to the Web site: default.php and index.php two documents.


6, continue to the PHP package for the following configuration: Into the C:\PHP5 directory, renamed File Php.ini-development renamed PHP.ini.



7, with Notepad to open edit php.ini file, using the shortcut key ctrl+f Fast search positioning, the relevant Date.timezone modified to date.timezone= "Asia/hongkong" that is, modify the current system time zone, while the preceding semicolon ";" Delete takes effect.


Also need to activate the appropriate extension options, the corresponding DLL statement before the semicolon ";" Delete

For example:

; Extension=php_gd2.dll changed to Extension=php_gd2.dll
; Extension=php_mbstring.dll changed to Extension=php_mbstring.dll
; Extension=php_mysql.dll changed to Extension=php_mysql.dll
; Extension=php_mysqli.dll changed to Extension=php_mysqli.dll
; Extension=php_pdo_mysql.dll changed to Extension=php_pdo_mysql.dll


Then search for Extension_dir, modify the path to Extension_dir = "C:\php5\ext\" while the preceding semicolon ";" Delete takes effect. , modify it, save it, and then copy the php.ini file to the C:\Windows root directory.


8, PHP environment configuration Well, now need to test, in the establishment of the Site Directory wwwroot folder "C:\inetpub\wwwroot" a new phpinfo.php Web page file.


Content is:

<?php

Phpinfo ();

?>

Then in IE browser open http://localhost/phpinfo.php, you can appear similar to the following interface, that is, successfully effective.


PS: (in the command line into the PHP installation directory, such as C:\php5\php.exe-m, enter the PHP-M command to view the open DLL expansion module):


At this point, Win8.1 system configuration to build iis8.5+php5.5.4 running environment of the tutorial to the end, I do not know if you have built a successful. If you need a database that can later install MySQL or SQL Server class databases, conduct a local test site or forum.

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.