IIS6 PHP配置方法
多脚本支持服务器现在是被越来越多的人所使用。如果想要架设一台同时支持php(做为现在的主流开发语言)、ASP、asp.net(微软最强的开发语言)、jsp(SUN企业级应用的首选)、Perl的Web虚拟主机服务器,还是用 Windows 2003的iis(微软的WEB服务器平台)6最好。网上有很多介绍在iis(微软的WEB服务器平台) 6上配置php(做为现在的主流开发语言)的文章,但是那些方法不是性能不好,就是升级麻烦。下面的方法可以让你在第一次配置好后,能够非常方便的进行升级。
这里所说的升级,是指从某个php(做为现在的主流开发语言)4版本升级到另一个php(做为现在的主流开发语言)4版本,或者从某个php(做为现在的主流开发语言)5版本升级到另一个php(做为现在的主流开发语言)5版本,而不是指从php(做为现在的主流开发语言)4升级到php(做为现在的主流开发语言)5。
准备:
1、一台安装好的 Windows 2003 服务器,并且已经安装了 iis(微软的WEB服务器平台) 6。
2、下载 windows 版的 php(做为现在的主流开发语言) 二进制压缩包
安装:
解压缩 php(做为现在的主流开发语言) 二进制压缩包到 C:\php(做为现在的主流开发语言) 目录下(这里假设 C: 盘是系统盘,即安装了Windows 系统的盘,如果系统盘是 D: 盘,则解压缩到 D:\php(做为现在的主流开发语言) 目录下,以此类推,下同)。
然后打开“我的电脑”->“属性”->“高级”->“环境变量”->“系统变量”->“path”,编辑其值,在前面增加下面的路径地址:
C:\php(做为现在的主流开发语言);C:\php(做为现在的主流开发语言)\dlls;C:\php(做为现在的主流开发语言)\extensions;C:\php(做为现在的主流开发语言)\sapi;
将 php(做为现在的主流开发语言).ini-dist 或 php(做为现在的主流开发语言).ini-recommended 复制到 C:\Windows 目录下,并改名为 php(做为现在的主流开发语言).ini,一般正式发布网站的服务器用 php(做为现在的主流开发语言).ini-dist,而作为调试用的服务器用 php(做为现在的主流开发语言).ini-recommended 更好。当然一般情况下,这个 php(做为现在的主流开发语言).ini 还是需要根据实际情况来修改的。
下面来介绍一下几个必要的修改选项:
extension_dir = "C:\php(做为现在的主流开发语言)\extensions"
这个是 php(做为现在的主流开发语言) 扩展所放置的目录,请确保跟你实际安装的目录相同。
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(做为现在的主流开发语言)_iis(微软的WEB服务器平台)func.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(WINDOWS平台上强大的数据库平台).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(做为现在的主流开发语言)_xml(标准化越来越近了)rpc.dll
extension=php(做为现在的主流开发语言)_xslt.dll
extension=php(做为现在的主流开发语言)_yaz.dll
extension=php(做为现在的主流开发语言)_zip.dll
上面这些,开头没有加分号的是打开的扩展,加了分号的是没有打开的扩展。上面的设置包含了在 Windows 2003 上默认安装情况下可以打开所有扩展(这里列出的是 php(做为现在的主流开发语言) 4 的)。
session.save_path = c:\sessions
这个是 session 文件默认保存的目录,这个目录必须是一个存在的目录,不然默认的 session 功能会无效。我这里设置的是一个 ramdisk 上的一个目录。将 session.save_path 设置在 ramdisk 上可以加快 session 处理的速度。如果你没有安装 ramdisk,你可以把它指定到其他盘的任何一个目录下,如 C:\sessions 目录、C:\Windows\Temp 目录等。
技术交流 永无止境

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

Why can't my code get the data returned by the API? In programming, we often encounter the problem of returning null values when API calls, which is not only confusing...

Mastering Debian system log monitoring is the key to efficient operation and maintenance. It can help you understand the system's operating conditions in a timely manner, quickly locate faults, and optimize system performance. This article will introduce several commonly used monitoring methods and tools. Monitoring system resources with the sysstat toolkit The sysstat toolkit provides a series of powerful command line tools for collecting, analyzing and reporting various system resource metrics, including CPU load, memory usage, disk I/O, network throughput, etc. The main tools include: sar: a comprehensive system resource statistics tool, covering CPU, memory, disk, network, etc. iostat: disk and CPU statistics. mpstat: Statistics of multi-core CPUs. pidsta

Efficient reading of Windows system logs: Reversely traverse Evtx files When using Python to process Windows system log files (.evtx), direct reading will be from the earliest...

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

Python binary library (.whl) download method explores the difficulties many Python developers encounter when installing certain libraries on Windows systems. A common solution...
