In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to install php5.3 in iis6. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Iis6 install php5.3 method: 1, install IIS and download and install IIS FastCGI;2, download and install PHP5.3.8;3 under IIS, modify environment variables; 4, modify FastCGI installation directory and php.ini configuration file; 5, modify Internet information service manager.
This article operating environment: Windows2003 system, php5.3.8 version, DELL G3 computer
How does iis6 install php5.3?
WIN2003+IIS6 PHP 5.3.8 installation configuration tutorial [Picture and text]
First, install IIS
Download and install IIS FastCGI
Download address: http://www.iis.net/download/fastcgi. Select x86 or download x86 and download it as fcgisetup_1.5_rtw_x86.msi. After installation, five more files fcgiconfig.js,fcgiext.dll,fcgiext.ini,fcgilicense.rtf,fcgireadme.htm will be added to the C:\ WINDOWS\ system32\ inetsrv\ directory
At this time, there is an extra FastCGI Handler in the WEB service extension of IIS6.
Download and install PHP5.3.8 under IIS
Download the address http://windows.php.net/download/, download the ZIP version of VC9 x86 Non Thread Safe, and extract it to the desired directory, which needs to give user read and run permission.
IV. Configure and modify content
1. Environment variable modification
My computer-> Properties-> Advanced-> Environment variables-> system variables, added at the end of Path; E:\ PHP\
2. Modifications in the FastCGI installation directory (register PHP to FastCGI)
Open the C:\ WINDOWS\ system32\ inetsrv\ fcgiext.ini file and add the following statement at the end of the file:
[Types] (this is the original file, just add the following statement after [Types], all of it, or you will report an error.)
Php=PHP
[PHP] ExePath=E:\ PHP\ php-cgi.exeInstanceMaxRequests=10000ActivityTimeout=600RequestTimeout=600EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:E:\ PHP\
3. Modification of PHP.ini there is no PHP.ini file in the PHP5.3.8 installation directory, only php.ini-development and php.ini-production. We will change php.ini-development to php.ini (of course, if you are afraid of making mistakes, you can back it up first).
Note: first create a folder named TMP, the location is random, I put it here in E:\ PHP\ tmp. (upload_tmp_dir will use upload_tmp_dir to define a temporary path for uploading files. You can modify it and define an absolute path for it, as well as read and write permissions.) Change the following keyword to its current value by searching (shortcut key: Ctrl+F):
Short_open_tag = Off (this is the default, so let's not change it.)
Note: if this is the off state, the probe can not be used, and some programs will be 500 errors, such as Empire backup King, so if you have these requirements, you can set it to ON!
Change; upload_tmp_dir= to upload_tmp_dir= "E:\ PHP\ tmp"
Change; cgi.force_redirect= 1 to cgi.force_redirect=0
Change; fastcgi.impersonate=1; to fastcgi.impersonate=1
Change; extension_dir= "ext" to extension_dir= "E:\ PHP\ ext"
Change; date.timezone = to date.timezone = PRC (if you do not modify the date.timezone, you are likely to get a 500th error when you open the page. There are also people who change the value to Asia/Shanghai. I haven't tried it. You can try it.)
Remove the semicolon (;) before the extension in Windows Extensions:
; extension=php_curl.dll; extension=php_gd2.dll; extension=php_ldap.dll; extension=php_mbstring.dll; extension=php_exif.dll; extension=php_mysql.dll; extension=php_mysqli.dll; extension=php_sockets.dll; extension=php_xmlrpc.dll
Modification of 4.Internet Information Services (IIS) Manager
(1) add website "properties" home directory "configuration"
Fill in the executable file C:\ WINDOWS\ system32\ inetsrv\ fcgiext.dll
Fill in the .php extension.
Action-> is limited to GET,HEAD,POST.
(2) website-> Properties-> document-> add default content index.php. It's all configured here. Be sure to restart the IIS service.
5. Test
Write a piece of test code in text:
The code is as follows:
Save as index.php, take whatever name you want, as long as the suffix is .php. Put index.php in the root directory. Here is C:\ Inetpub\ wwwroot, and then type http://localhost/index.php in the browser to get the returned information.
5. If an error like the following occurs, your computer does not have the VC9 runtime, that is, VISUAL C++ 2008
Microsoft Visual C++ 2008 Redistributable Package (x86)
Download address: http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=zh-cn
Download and install it.
This is the end of this article on "how to install php5.3 in iis6". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.