In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces Windows2003 server how to upgrade PHP and how to configure IIS, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Although the LAMP combination is very good, if you want to set up a Web virtual host server that supports PHP, ASP, ASP.NET, JSP and Perl at the same time, it is best to use Windows2003's IIS6. By upgrade, I mean upgrading from one php4 version to another php4 version, or from one php5 version to another php5 version, not from php4 to php5. The following editor will explain how to upgrade the Windows2003 server and how to configure IIS on the PHP?Windows2003 server.
How to upgrade PHP for Windows2003 Server
Prepare:
1. An installed Windows2003 server, and IIS6 has been installed.
2. Download the PHP binary package of windows version
Installation:
Extract the PHP binary package to the C:\ php directory. (here, it is assumed that the C: disk is the system disk, that is, the disk with the Windows system installed. If the system disk is a D: disk, extract it to the D:\ php directory, and so on, the same below).
Then open my computer-> Properties-> Advanced-> Environment variable-> system variable-> path, edit its value, and add the following path address in front of it:
C:\ php;C:\ php\ dlls;C:\ php\ extensions;C:\ php\ sapi
Copy php.ini-dist or php.ini-recommended to the C:\ Windows directory and rename it to php.ini. Generally, the server that officially publishes the website uses php.ini-dist, while the server used as a debugging server uses php.ini-recommended. Of course, in general, this php.ini still needs to be modified according to the actual situation.
Here are a few necessary modification options:
Extension_dir= "C:\ php\ extensions"
This is the directory where the PHP extension is placed, please make sure it is the same as the directory you actually installed.
Extension=php_mbstring.dll
; extension=php_big_int.dll
Extension=php_bz2.dll
Extension=php_cpdf.dll
Extension=php_crack.dll
Extension=php_curl.dll
Extension=php_db.dll
Extension=php_dba.dll
Extension=php_dbase.dll
Extension=php_dbx.dll
Extension=php_domxml.dll
; extension=php_exif.dll
; extension=php_fdf.dll
; extension=php_filepro.dll
Extension=php_gd2.dll
Extension=php_gettext.dll
Extension=php_hyperwave.dll
Extension=php_iconv.dll
; extension=php_ifx.dll
; extension=php_iisfunc.dll
Extension=php_imap.dll
; extension=php_interbase.dll
Extension=php_java.dll
Extension=php_ldap.dll
; extension=php_mcrypt.dll
Extension=php_mhash.dll
Extension=php_mime_magic.dll
Extension=php_ming.dll
Extension=php_mssql.dll
Extension=php_msql.dll
; extension=php_oci8.dll
Extension=php_openssl.dll
; extension=php_oracle.dll
Extension=php_pdf.dll
Extension=php_pgsql.dll
; extension=php_printer.dll
Extension=php_shmop.dll
; extension=php_snmp.dll
Extension=php_sockets.dll
; extension=php_sybase_ct.dll
Extension=php_w32api.dll
Extension=php_xmlrpc.dll
Extension=php_xslt.dll
Extension=php_yaz.dll
Extension=php_zip.dll
Above, the extension without a semicolon at the beginning is open, and the extension with semicolon is not open. The above settings include that all extensions can be opened by default on Windows2003 (listed here is php4).
Session.save_path=c:\ sessions
This is the directory where session files are saved by default. This directory must be an existing directory, otherwise the default session function will be invalid. What I set up here is a directory on a ramdisk. Setting session.save_path on ramdisk can speed up session processing. If you don't have ramdisk installed, you can specify it to any directory on another disk, such as C:\ sessions directory, C:\ Windows\ Temp directory, etc.
OK, the basic work is done, and now it's time to configure IIS.
Open the Internet Information Services (IIS) Manager, in the Web Services extension, select "add a new Web service extension", the extension can be filled in "PHPISAPI extension", the required file selection: C:\ php\ sapi\ php4isapi.dll (if PHP5 is installed, here is C:\ php\ sapi\ php5isapi.dll, the same below), and set the extension status to allow.
Open "site"-> "Properties"-> "ISAPI filter"-> "add". The filter name can be filled in "PHP", but the executable file still selects C:\ php\ sapi\ php4isapi.dll.
Open Web site-> Properties-> Home Directory-> Application Settings-> configuration-> Application extension-> add, and select C:\ php\ sapi\ php4isapi.dll for the executable. Fill in the extension ".php" and the action is limited to "HEAD,GET,POST".
Open site-> Properties-> document-> enable default content document-> add to add index.php as the default content document.
Then select Server Machine name-> all tasks-> restart IIS to restart IIS.
test
Under the default site publishing directory, create a test page:
Download: phptest.php
Phpinfo ()
? >
If you open this page and you can see the php installation configuration information, the installation is considered successful.
If you want to optimize the execution of php programs, you can install ZendOptimizer-2.6.0-Windows-i386.exe, which is very easy to install, so I won't cover it here.
Upgrade
Now the upgrade is very simple. Just download the new version of the PHP binary package, delete the original C:\ php directory, extract the new version to the C:\ php directory, and restart IIS. No configuration changes are required, nor do you need to copy any files to the System32 directory. Isn't it convenient?
On the Windows2003 server how to upgrade PHP and how to configure IIS 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: 295
*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.