找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 查看内容

php5.4下载流程是什么

作者:模板之家 2021-6-11 16:31 188人关注

php5.4下载流程:1、安装fastcgi并运行;2、下载非线程安全的php代码;3、下载vc9的运行库;4、解压下载的php-5.4.0-nts文件;5、修改php.ini文件;6、修改fcgiext.ini文件;7、设置iis。

php5.4下载流程:1、安装fastcgi并运行;2、下载非线程安全的php代码;3、下载vc9的运行库;4、解压下载的php-5.4.0-nts文件;5、修改php.ini文件;6、修改fcgiext.ini文件;7、设置iis。

本文操作环境:windows7系统、php5.4版,DELL G3电脑

七步教你windows下php5.4安装

1、首先php从5.2中已经修改为FastCGI方式安装,所以安装php5.4需要先安装fastcgi,fastcgi的下载地址如下:

http://www.iisboy.com/iis_down/552.html

下载后直接运行安装

2、下载php最新代码

下载地址:http://windows.php.net/download/

下载非线程安全的即可,可根据实际需要下载对应的版本

3、要想运行php5.4需要vc9的运行库,下载地址如下

http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf

下载后直接运行安装

如果不安装的话会出现如下错误:

xp The FastCGI Handler was unable to process therequest

Error Number:14001

4、解压下载的php-5.4.0-nts-Win32-VC9-x86.zip文件,并将其放到任意位置如:d:\php5

修改其中的php.ini-development为php.ini

5、修改php.ini文件如下:

; On windows:

extension_dir ="d:/php5/ext"

(去掉前面的分号)

extension=php_curl.dll

extension=php_gd2.dll

extension=php_gettext.dll

extension=php_mbstring.dll

extension=php_exif.dll

extension=php_mysql.dll

extension=php_pdo_mysql.dll

extension=php_xmlrpc.dll

extension=php_zip.dll

fastcgi.impersonate = 1

6、修改fcgiext.ini文件

此文件在安装第一步后会出现在如下目录:C:\WINDOWS\system32\inetsrv

在fcgiext.ini文件的末尾添加如下代码

[Types]

php=PHP

[PHP]

ExePath=D:\php5\php-cgi.exe

InstanceMaxRequests=10000

ActivityTimeout=300

RequestTimeout=600

EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:D:\php5\

注意:只保留一个[Types] ,其中D:\php5\php-cgi.exePHPRC:D:\php5\中的路径是php的存放路径,否则出现如下错误:

FastCGI Error
The FastCGI Handler was unable to process the request.
--------------------------------------------------------------------------------
Error Details:
Could not find entry for "php" on site 1 in [Types] section.
Error Number: 1413 (0x80070585).
Error Description: 无效索引。
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
C:\WINDOWS\system32\inetsrv\fcgiext.ini
出现这个错误是因为C:\WINDOWS\system32\inetsrv\fcgiext.ini,正确的配置上面已经提到

7、iis设置

前提是已经安装了iis,设置网站属性如下图:

2b0630c39bbbd97c7b101f59b384e86.png

运行测试程序代码

<?php phpinfo();?>

如下效果图:证明安装完毕

5bdc7b15d9c592817296eaca2abdb85.png

推荐学习:《PHP视频教程》

以上就是php5.4下载流程是什么的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章!


路过

雷人

握手

鲜花

鸡蛋
来自: 网络收集

全部回复(0)