How to configure the PHP runtime environment in Windows 8 IIS _win Server

Source: Internet
Author: User
Tags configuration php php and php website

Build the PHP Runtime environment in IIS (8.0) of Windows 8:

One: Install the IIS server

1. Access to Control Panel >> programs and features >> turn Windows features on or off to find Internet Information Services, remember to select the CGI

2. When the installation is complete, open localhost in the browser to see if you can display the Welcome page for IIS:

Two: Download installation configuration PHP environment

1, download PHP, website address: http://windows.php.net/download/,
2, will download the ZIP compression package to D disk, decompression after the E:\php;
3, Access to Control Panel >> management tools >>internet Information Services (IIS) Manager;
4, middle window select "Handler mapping" double click, then rightmost select "Add Module mapping"

5. "Executable" column found in the PHP installation directory E:\php, the lower right corner of the file type to "EXE" can see the "Php-cgi.exe" file appears



6. You can then add default documents to your Web site: default.php and index.php.

The following configuration is also performed:

7. Enter the E:\php directory, rename the file php.ini-development renamed PHP.ini and copy to the desktop;

8. The following need to modify the desktop php.ini file,

After opening the php.ini file, use the shortcut key Ctrl+f search Data.timezone Modify to Data.timezone= "Asia/shanghai" to modify the current time zone
Activate the extension option you need, and the semicolon "before the corresponding DLL statement"; Delete

Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll


Re-search extension_dir= to modify it to Extension_dir = "E:\php\ext\", modify and check after the save, and then the desktop of this php.ini file cut to C:\ Windows directory can (why not directly copy the file here to modify it, because Windows 8 involves permission issues, so first copy to the desktop modification, of course, can also be placed in other directory changes)

9.php environment Configuration Well, we can test, in the established site directory to create a new index.php file (note is index.php, not index.php.txt), content for "<?php phpinfo ();? >, and then open "localhost" in the browser to appear similar to the following interface

PS1: (Enter the PHP installation directory at the command line, enter the "php-m" command to view the open DLL extension module)

ps2:php website development words without MySQL database, about MySQL database environment configuration installation diagram See here.

Author: Fantasy Zerow

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.