源码哥,靠谱的网站源码下载站 帮助 每日签到

源码哥

广告位《资讯详情页横幅-1150*?》

在Windows系统上手动安装PHP的方法

  • 发布者:源码哥 时间:2022-09-15 10:25 阅读:199
  • 扫一扫,手机访问
广告位《资讯详情页摘要上方横幅-828*?》
摘要:选择网络服务器IISIIS是Windows的嵌入式服务。在Windows Server版本中,使用服务器管理器添加IIS规则。此外,还必须设置CGI角色规则。在Windows桌面版本中,必须使用控制面板中的“添加和删除程序”功能添加IIS。»有关详细说明,请参阅微软官方文档。对于桌面Web应用程序开发人员,也可以选择IIS/Express或PHP桌面。例1从命令行设定IIS和PHP:@echo off REM do

选择网络服务器


IIS


IIS是Windows的嵌入式服务。在Windows Server版本中,使用服务器管理器添加IIS规则。此外,还必须设置CGI角色规则。在Windows桌面版本中,必须使用控制面板中的“添加和删除程序”功能添加IIS。»有关详细说明,请参阅微软官方文档。对于桌面Web应用程序开发人员,也可以选择IIS/Express或PHP桌面。


例1从命令行设定IIS和PHP:


@echo off
REM download .ZIP file of PHP build from http://windows.php.net/downloads/
REM path to directory you decompressed PHP .ZIP file into (no trailing )
set phppath=c:php
REM Clear current PHP handlers
%windir%system32inetsrvappcmd clear config /section:system.webServer/fastCGI
REM The following command will generate an error message if PHP is not installed. This can be ignored.
%windir%system32inetsrvappcmd set config /section:system.webServer/handlers /-[name='PHP_via_FastCGI']
REM Set up the PHP handler
%windir%system32inetsrvappcmd set config /section:system.webServer/fastCGI /+[fullPath='%phppath%php-cgi.exe']
%windir%system32inetsrvappcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='%phppath%php-cgi.exe',resourceType='Unspecified']
%windir%system32inetsrvappcmd set config /section:system.webServer/handlers /accessPolicy:Read,Script
REM Configure FastCGI Variables
%windir%system32inetsrvappcmd set config -section:system.webServer/fastCgi /[fullPath='%phppath%php-cgi.exe'].instanceMaxRequests:10000
%windir%system32inetsrvappcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000']"
%windir%system32inetsrvappcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%php-cgi.exe'].environmentVariables.[name='PHPRC',value='%phppath%php.ini']"


Apache


Windows用的Apache有几个版本。建议使用ApacheLounge编译的Apache,但其他选项(例如XAMPP、WampServer和BitNami)提供自动安装工具。PHP等于mod_php或mod_可以在Apache中使用fastcgi。mod_php需要由相同版本的Visual C和相同CPU(x86或x64)编译的Apache TS版本。


选择构建版本


Windows专用站点»http://windows.php.net/download/中描述的场景,使用下列步骤创建明细表,以便在概念设计中分析体量的周长。所有编译都经过了优化(PKO),并对QA构建和GA构建进行了彻底测试。


PHP构建有四种类型。


Thread-Safe(TS) - mod_单进程Web服务器(如使用php的Apache)的线程安全


Non-Thread-Safe(NTS)-非线程安全、IIS和其他FastCGI Web服务器(mod_fastcgi使用Apache)以及命令行脚本


用于x86-32位系统。


用于x64-64位系统。


相关连接: 网站源码 企业网站源码

  • 全部评论(0)
广告位《资讯详情页最新发布上方横幅-828*?》
最新发布的资讯信息
【网站开发|HTML】html编码设置(2022-10-17 11:26)
【网站开发|HTML】html添加注释的方法(2022-10-17 11:25)
【网站开发|HTML】html元素(2022-10-17 11:23)
【网站开发|HTML】html属性介绍(2022-10-17 11:22)
【网站开发|HTML】html标签说明(2022-10-17 11:21)
【网站开发|HTML】html的基本结构(2022-10-17 11:20)
【行业资讯|】如何学习好网站前端开发?(2022-10-14 14:53)
【网站开发|JavaScript】如何轻松学习JavaScript(2022-10-14 14:26)
【网站开发|node.js】NodeJS Service Docker映像终极优化指南(2022-10-14 14:14)
【网站开发|JavaScript】后端response响应返回图像,前端怎么下载图片?(2022-09-23 10:17)
联系我们
Q Q:472206683
微信:472206683
邮箱:472206683@qq.com
时间:09:00 - 24:00
联系客服
售前咨询 网站搭建 技术支持 联系客服
18639176864
手机版
手机版二维码
扫一扫进手机版
返回顶部