Top 10 Hosting > Web Hosting Articles
The best configuration of PHP IIS6 Web Server
This collection from the network, I have not tried, I do not know how to present PHP
version 5.2 has a. Readers should Zhaozhao new article, I own and built up a Apache + PHP
+ Mysql + Mysqladmin platform, only do students learn, not real combat over. !!!
Although the LAMP combination is very good, but at the same time if you want to set up a
support PHP, ASP, ASP.NET, JSP, Perl's Web virtual host server, or use Windows 2003, IIS 6
is best. There are many online introduction to configure PHP on IIS 6 articles, but those
methods are not a bad performance is to upgrade trouble. The following method will allow
you first configured, it can very easily upgrade.
Upgrade mentioned here, is from a php4 php4 upgrade to another version, or upgrade from
one version to another php5 php5 version, not the upgrade from php4 to php5.
Preparation:
1, a Windows 2003 server installed and have installed IIS 6.
2, download windows version of PHP binary archive
Installation:
Extract the PHP binary archive to C: \ php directory (this assumes C: drive is the system
disk, or install the Windows system tray, if the system disk is the D: drive, then unzip
to D: \ php directory, and so on, the same below).
Then open "My Computer" - > "Properties" - > "Advanced"
- > "Environment Variables" - > "System Variables" - >
"path", edit the value, add the following path in front of address:
C: \ php; C: \ php \ dlls; C: \ php \ extensions; C: \ php \ sapi;
The php.ini-dist or php.ini-recommended copied to C: \ Windows directory, and renamed the
php.ini, usually with the official release site of the server php.ini-dist, and as a
server for debugging with php. ini-recommended better. Of course, under normal
circumstances, the php.ini or the need to modify the actual situation.
Here to introduce a few necessary changes options:
The following is quoted fragment:
extension_dir = "C: \ php \ extensions"
This PHP extension is placed in the directory, please make sure you actually install the
directory with the same.
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 these, do not add a semicolon at the beginning of the expansion is open, add a
semicolon is not open for expansion. Above the set contains the default installation of
Windows 2003 on all cases can turn on extensions (listed here is the php 4's).
session.save_path = c: \ sessions
This is the default saved session file directory, the directory must be an existing
directory, otherwise the default session functions will be invalid. I set here is a
directory on a ramdisk. Session.save_path set to speed up the session in the ramdisk can
handle the speed. If you do not install ramdisk, you can specify it to any other disk
directory, such as C: \ sessions directory, C: \ Windows \ Temp directory and so on.
OK, for the basic work done, and now the IIS configuration.
Open the "Internet Information Services (IIS) Manager" in "Web Service
Extensions", select "Add a new Web service extension", extension to
complete the "PHP ISAPI Extension", select the required file: C: \ php \ sapi \
php4isapi.dll (If you are installing PHP5, then here is the C: \ php \ sapi \
php5isapi.dll, the same below), and set the extension status to Allowed.
Open the "Site" - > "Properties" - > "ISAPI Filter"
- > "Add", fill in the filter name to "PHP", the executable file
still choose C: \ php \ sapi \ php4isapi.dll.
Open the "Site" - > "Properties" - > "Main Menu" - >
"Application Settings" - > "Configuration" - > "Application
Extension" - > "Add", the executable file, or select C: \ php \ sapi \
php4isapi.dll. Extension completed ". Php", action is limited to "HEAD,
GET, POST".
Open the "Site" - > "Properties" - > "Document" - >
"Enable default content document" - > "Add", you can add index.php
to the default content document.
Then select the "server machine name" - > "All Tasks" - >
"Restart IIS" to restart IIS.
Test
Released in the default Web site directory, create a test page:
Download: phptest.php
phpinfo ();
? >
If you open this page to see the php installation and configuration information, even if
the installation was successful.
If you want a more optimized implementation of the php program, you can install
ZendOptimizer-2.6.0-Windows-i386.exe, this thing is very simple to install, not presented
here.
Upgrade
Upgrade now very simple. Only need to compress the new version of PHP binary packages
downloaded, the original C: \ php directory deletion, the new version of the extract to C:
\ php directory, and then click Restart IIS on it. Do not modify any configuration and
does not need to copy any files in the System32 directory. Is not easy ah?
How to choose web hosting and domain name?Realizations on Purchase of Web hostingHow to choose top 10 hosting