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

Detailed process of installing PHP on IIS

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

Share

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

This article mainly explains the "detailed process of installing PHP in IIS". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the detailed process of installing PHP in IIS".

IIS installation PHP:

1. Unpack the downloaded PHP installation package to be installed in IIS to your C root directory (choose C root directory here for future modification and debugging convenience, or you can choose a different directory). After unpacking, you should be able to get a directory similar to "php-4.2.3-Win32" and change the directory name to "PHP".

two。 Open the PHP directory you just extracted, and you will find a file called "php.ini-dist". This is the configuration file of PHP. You need to rename it to "php.ini" and copy it to the system directory (if your system is installed on disk C, "C:\ windows" under XP and "C:\ winnt" under Windows2000).

In the past, there are many articles about the installation of PHP files in IIS that say to modify the values of "extension_dir" and "doc_root" in php.ini, but the author has not changed or made any errors in the process of installing PHP in IIS. It seems that these two parameters are not necessary. Of course, you can modify it if you are worried.

Change doc_root to the root directory of your server and extension_dir to the absolute path where the extensions folder in your PHP installation folder is located.

3. When IIS installs PHP, open your IIS Information Services console, right-click the default site icon, select Properties, open the default site property selection, and then select the Home Directory tab

Click the "configure" button and you will see another tab showing the defined document types. Click the "add" button, type in the executable text box of the dialog box where your php.exe is located in the absolute path plus "% s% s", here is "c:\ php\ php.exe% s% s", the extension text box writes the suffix name that you require the php program to deal with, here we write ".php", and the following options can be set by default.

4. Okay. Now try saving the following code as a suffix php file, and then visit it in one of your virtual directories to see if you can get normal results. The work of installing PHP in IIS is done. To see if it can be used properly?

Thank you for your reading, these are the contents of "the detailed process of installing PHP in IIS". After the study of this article, I believe you have a deeper understanding of the detailed process of installing PHP in IIS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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