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

Can iis virtual host run php program?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail about whether the iis virtual host can run php programs, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

The iis virtual host can run php. For example, the Windows virtual host can support PHP language to run. IIS is a World Wide Web server. Gopher server and FTP server are all contained in it.

IIS is a Web service component, including Web server, FTP server, NNTP server and SMTP server, which are used for web browsing, file transfer, news service and mail sending, respectively. It makes it easy to publish information on the network (including the Internet and local area network).

Iis is the abbreviation of Internet Information Services, which means Internet information service. It is a basic Internet service based on running Microsoft Windows provided by Microsoft.

To run PHP in iis, you need to install CGI module, PHP, etc.

The first step is to make sure that the CGI module is installed in IIS, and that the CGI module is on or off the Windows function-application development function.

The second is to download the required PHP version, then go to the IIS manager, start the "handler mapping" and add the "php-cgi.exe" in the PHP file to the "module mapping".

The third step is to add default documents to the site: default.php and index.php.

The fourth step is to rename the file php.ini-development to php.ini and modify some of the configurations in the PHP.ini file. The configurations of different versions are different. You can consult various cloud service providers for details here.

At this point, we have basically completed the configuration of the PHP environment under IIS. We can create a new index.php file to do a simple test.

This is a simple step for self-manual configuration, for reference only. If we purchase an ASP virtual host or a Windows virtual host, there is no need for us to configure it manually. The cloud service will automatically build the PHP environment. For example, all ASP virtual hosts are provided with a PHP running environment, which does not need to be manually configured.

About the iis virtual host can run php program to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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