WIn7安装PHP fastcgi for IIS
2012-04-19 16:14
429 查看
1、首先配置iis的fastcgi支持,开始-控制面板-程序-打开或关闭windows功能;
选中cgi,点击确定,安装cgi(fastcgi);
2、安装并配置php,到http://windows.php.net/download/, 下载php for windows的zip包;解压缩zip包到c:\php目录,复制php.ini-production文件,并改名为php.ini;打开php.ini文件
将一下行开始;去掉
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
open_basedir -- 设置你的web路径 (可以不设)
extension_dir = -- 设置扩展路径 (可以不设)
3、配置iis,开始-运行-输入inetmgr-打开iis管理器-处理程序映射-添加模块映射
注意选择可执行文件时,再打开窗口中选择.exe,默认是.dll
4、建立站点
5、测试站点,创建test.php,输入 <?php echo "php配置成功" ?>,保存到php站点目录,重启IIS,打开浏览器,访问http://localhost:8080/test.php
如果出现
PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
配置php.ini文件,去掉date.timezone 前面的 ; 并设置为date.timezone = Asia/Shanghai,重启IIS
选中cgi,点击确定,安装cgi(fastcgi);
2、安装并配置php,到http://windows.php.net/download/, 下载php for windows的zip包;解压缩zip包到c:\php目录,复制php.ini-production文件,并改名为php.ini;打开php.ini文件
将一下行开始;去掉
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
open_basedir -- 设置你的web路径 (可以不设)
extension_dir = -- 设置扩展路径 (可以不设)
3、配置iis,开始-运行-输入inetmgr-打开iis管理器-处理程序映射-添加模块映射
注意选择可执行文件时,再打开窗口中选择.exe,默认是.dll
4、建立站点
5、测试站点,创建test.php,输入 <?php echo "php配置成功" ?>,保存到php站点目录,重启IIS,打开浏览器,访问http://localhost:8080/test.php
如果出现
PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
配置php.ini文件,去掉date.timezone 前面的 ; 并设置为date.timezone = Asia/Shanghai,重启IIS
相关文章推荐
- win7 自定义安装php iis
- Win7 iis+php+mysql+WordPress安装说明
- (win7)IIS7下配置php5.3 (5.3以后的版本只可以使用FastCGI)
- Win7 IIS7.5+PHP Manager安装配置PHP5+Mysql教程
- 【备忘】win7下IIS 用FastCGI模块 配置PHP
- Windows7下IIS中以FastCgi安装PHP
- (原创)win7自带IIS7.5+php7.0.10安装教程(图)
- Win7下IIS安装PHP环境
- Windows 2008 R2 用PHP Manager for IIS 配置PHP(FastCGI)环境
- Install IIS 7.5 PHP & FastCGI for PHP on Windows 7
- Win7、windows 2008 IIS7.5下载安装方法以及教程 IIS7配置PHP环境图文教程(fastcgi快速最新版)
- win7下IIS 用FastCGI模块 配置PHP 共有0条回复
- IIS8.5+PHP(FastCGI)安装配置
- IIS中fastcgi安装多版本php配置方法
- Win7下在IIS7中配置PHP的FastCGI支持,在iis下跑php程序
- windows2012安装iis8.5+php(FastCGI)+MySQL环境搭建教程
- Windows7下IIS中以FastCgi安装PHP
- IIS上FASTCGI安装PHP5.3以后版本
- Windows IIS FastCGI安装PHP5.3 VC9 Non Thread Safe全攻略
- 在IIS 5.1/6上以FastCGI方式安装 PHP