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

What are the steps for iis 2008 to install php

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what are the steps for iis 2008 to install php". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the steps for installing php in iis 2008?"

Iis 2008 install php: 1, install CGI;2, find the manager, and create a new website; 3, download the php environment installation package; 4, create and modify php.ini;5, configure iis's "handle application mapping"; 6, restart IIS.

This article operating environment: Windows2008 system, PHP5.6.9 version, DELL G3 computer

Win2008 Server configure the PHP environment:

Configure IIS before configuring the PHP environment.

Configure and install IIS under Portal-> Win2008 Server

If IIS is installed in the default configuration, you also need to install CGI.

Check CGI here and install it.

Create a website

Find the manager

Delete the default site. [recommended study: "PHP Video tutorial"]

Create a new website. Right-click the site and select add site

The name of the website is arbitrarily configured, and the physical path is the path where the website is stored.

If the server has a bound domain name, configure it at the hostname.

If not, it will be empty by default.

Go to the root of the website and add a random html document, and then test it

Configure the PHP environment

Download the php environment installation package and choose the version you need

Http://windows.php.net/downloads/releases/archives/

What I downloaded here is php-5.6.9-nts-Win32-VC11-x86.zip

There are two ways to execute PHP: ISAPI and FastCGI.

Nts is Non Thread Safe is non-thread safe, which is executed by FastCGI. It performs the operation as a single thread, so there is no need for thread safety check.

Removing the protection of thread safety checks can improve execution efficiency, so if you are using FastCGI to execute PHP, it is recommended that you choose the NonThread Safe version.

Conversely, if it is executed in ISAPI mode, it is recommended that you choose the Thread Safe version.

Download it and extract it to a custom directory.

Creating a php.ini,php.ini is obtained by renaming php.ini-production

Modify php.ini

Search for extension_dir and set the path

Add ext to the storage path where you just extracted the php. Remember that it is a backslash and remove the semicolon in front of it.

Open the components as needed, here are some commonly used ones. To remove the semicolon is to open it.

In the future, if you need anything, open it. Of course, if you find it troublesome, open it all now.

; extension=php_gd2.dll

; extension=php_curl.dll

; extension=php_mbstring.dll

; extension=php_exif.dll

; extension=php_mysql.dll

; extension=php_mysqli.dll

; extension=php_scokets.dll

; extension=php_pdo_mysql.dll

Search date.timezone to set the time zone to avoid time confusion. Remember to remove the semicolon

For example: Asia/Chongqing (Chongqing), Asia/Shanghai (Shanghai), Asia/Urumqi (Urumqi), Asia/Macao (Macao), Asia/Hong_Kong (Hong Kong), Asia/Taipei (Taipei), PRC

Set up fastcgi.impersonate and cgi.rfc2616_headers

Set cgi.force_redirect = 0 to enable PHP execution in CGI mode

Enable short label support

Configure iis to handle Application Mapping

Add module mapping

Click "add module mapping" on the right, pop-up module mapping settings window, and enter "* .php" as the name.

Select "FastCgiModule" for the module, and the executor selects "php-cgi.exe" in the PHP directory you just downloaded.

Configure the default document

Click add on the right.

Restart IIS.

Add a test document to the root of the site, create a new "index.php", and the content can be set to

Then test it locally.

At this point, I believe you have a deeper understanding of "what are the steps for installing php in iis 2008?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Development

Wechat

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

12
Report