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

How to install php in iis5.1

2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how to install php in iis5.1. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Iis5.1 install php method: 1, download apache and install; 2, download "php-4.4.2-Win32" and extract to "E:\ php"; 3, configure PHP file; 4, open IIS and create a new virtual directory; 5, through "phpinfo ();" test whether PHP is installed successfully.

This article operating environment: winxp sp3+iis5.1, php-4.4.2-Win32, apache_2.2.6-win32-x86-no_ssl.msi version, DELL G3 computer.

How does iis5.1 install php?

Iis5.1 configures the php runtime environment

Port 80 should be empty when installing Apache.

Web search downloads apache and installs it. Three input boxes will appear during installation, which are about domain name and mailbox. Just fill in this, and then press the default next step until you are finished. When the installation is successful, an icon similar to a small hat with a green triangle appears on the taskbar, indicating that the installation has been successful.

Next, we will start to configure the PHP file. After downloading the php-4.4.2-Win32, extract it to E:\ php. Do not extract the folder with the Chinese name, so that you cannot add the mapping in the IIS.

After decompressing, find the php.ini-dist file, make a copy and rename it php.ini, open it with notepad and look for it; extension=php_mysql.dll and change it to extension=php_mysql.dll, then continue to look for extension_dir = ". /" to extension_dir = "E:\ php\", the last diagonal can not be less, save and exit, and copy it to c:\ windows

Locate the file named php4ts.dll,libmysql.dll in the E:\ PHP\ folder and E:\ PHP\ dlls and copy it to the C:\ windows\ System32 folder

Then open IIS, create a new virtual directory, open the virtual directory-"home directory -" configuration-"add", browse to E:\ PHP\ sapi\ php4isapi.dll, and enter .php in the extension. If the OK button below has no method, it may be because your PHP installation package is placed in a Chinese directory, then make sure to exit all the way, and finally create a new file test.php under the virtual directory.

Enter the following:

Test whether the installation is successful.

This is how iis5.1 installs php. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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