PHP5手动最简安装方法_PHP
系统要求
win2000 advanced server
iis5.0
php5rc2
第一步
当然是先要从 上下个php-5.0.3-Win32.zip回来。偶下的是php-5.0.3RC2-Win32.zip其实和php-5.0.3-Win32.zip差不多就少了两注册表文件,不过根本用不上,那是为iis4以下版本准备的 。
第二步
解压到任意目录,比如n:\imp\php\php5.0.3 不过不要在目录名里面有空格,以免出一些小麻烦。像e:\program files\php这样设置目录就不大妥当。
第三步
把你刚解压的目录名加到系统环境变量path里面。系统环境变量的不知道?晕倒!桌面-〉我的电脑-〉鼠标右键-〉属性-〉高级-〉系统变量-〉path->编辑-〉在最后面加分号;目录名(例如:n:\imp\php\php5.0.3)-〉确定。
第四步
在刚添加到path中的那个目录里面找到php.ini-dist或php.ini-recommended重命名为php.ini 剪切到系统目录下 c:\winnt 。用后面那个省得还要自己设置。
第五步
连接php为isapi方式
确认iis5.0 工作正常。打开internet服务管理器(运行-〉inetmgr-〉在你要连接php的网站或默认网站站点-〉单击鼠标右键 -〉属性-〉主目录--〉配置--〉应用程序映射-〉添加--〉可执行文件-〉你的php目录中的php5isapi.dll-〉扩展名-〉php(php3 phtml)-〉全部动作或限于(option,get ,post ,head。。。自己加)-〉钩选 脚本引擎--〉钩选 检查文件是否存在--〉确定--〉isapi筛选器--〉添加--〉筛选器名称—〉php--〉可执行文件--〉你的php目录中的php5isapi.dll--〉确定--〉主目录--〉钩选 脚本资源访问--〉执行许可--〉脚本和可执行程序。 属性-〉文档--〉启用默认文档--〉添加 --〉index.php 。
连接php为cgi方式
在主目录添加应用程序映射为php.exe 文件后缀为php就Ok 啦 如果要支持多个后缀,重复添加。
在此种安装的时候要注意在应用程序映射的时候的路径的写法,否则会出现下面的错误信息。
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
应该在路径后面加上"%s" %s 比如你的php.exe的路径是 n:\imp\php\php5.0.3\php.exe 那么在写到应用程序映射->可执行文件时就应该这样写 n:\imp\php\php5.0.3\php.exe "%s" %s
cgi的界面就是白底黑字。安全方面也不容乐观。所以用什么方式还是你自己定吧。
重启iis,运行--〉net stop iisadmin net start w3svc
顺便介绍下运行的几个程序
cmd
inetmgr
compmgmt
第六步
编写一个测试页,也就是包含php脚本的页面
echo 'Current PHP version: ' . phpversion();
phpinfo();
phpinfo(INFO_MODULES);
?>
保存为index.php,放到刚才你连接过php的网站的主目录中。在浏览器中查看此页。比如
第七步
安装其他插件 (扩展)

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



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

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,

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

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.
