用户
 找回密码
 入住 CI 中国社区
搜索
查看: 7134|回复: 5
收起左侧

初学~为什么我配置的CI在IIS里无法访问?

[复制链接]
发表于 2008-11-15 09:28:43 | 显示全部楼层 |阅读模式
我下载了一个CI1.7的包,把它放在I:\Inetpub\wwwroot\abc\底下
现在CI的物理路径是:I:\Inetpub\wwwroot\abc\system和I:\Inetpub\wwwroot\abc\index.php文件

我把config改为:$config['base_url'] = "http://localhost/abc/";
然后在浏览器里输入http://localhost/abc/index.php/welcome ,结果页面找不到
http://localhost/abc/index.php/welcome/index,这样也不行
但是http://localhost/abc这样没有问题,出来的是welcome的默认页,
请问这样是什么问题呢?
是我的IIS不支持Rewrite还是?

附件里是我的程序源码,我使用:
http://localhost/goodjoin/index.php/welcome/index
http://localhost/goodjoin/index.php/welcome

都无法访问,显示网页找不到的错误。
我的PHPINFO:
System Windows NT MICROSOF-501128 5.1 build 2600
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API ISAPI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\WINDOWS\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib, zip
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*




以下是附件,麻烦各位大虾帮我看看~

[ 本帖最后由 corser 于 2008-11-18 16:59 编辑 ]

goodjoin.rar

361.51 KB, 下载次数: 6

发表于 2008-11-15 09:30:54 | 显示全部楼层
是你的 IIS 不支持 PATH_INFO
你必须把 php 安装成 ISAPI 模式的

如果不是上面的问题,那就看看 http://codeigniter.org.cn/forums/thread-442-1-1.html
 楼主| 发表于 2008-11-18 16:34:32 | 显示全部楼层
我的php是ISAPI的、
我按您说的做了,还是不行。
还有哪些地方忽略的吗?
发表于 2008-11-18 22:26:43 | 显示全部楼层
$config['uri_protocol'] 设置成 PATH_INFO 了吗?
你这个问题 100% 是服务器环境问题,你最好重装,100%遇到这个问题的人全是服务器环境问题,重装 PHP 吧,即使显示是 ISAPI,并且最好别用 IIS,那东西太差了。
发表于 2008-11-18 22:29:52 | 显示全部楼层
实在不行,根据这个一步一步做:http://codeigniter.org.cn/forums/thread-415-1-2.html
发表于 2008-11-19 09:01:32 | 显示全部楼层
本地开发淡水推荐用Uniform Server 3.5
个人感觉比xamp和wamp好用
无需安装,启动和停止各有一个批处理文件
支持php4 5,mysql5 ,sqlite2.8,mod_rewriter
到目前为止淡水用它在VistaHB,vista U和xp,2000上都测试过,对CI(包括Kohana)的支持完全没有任何问题

地址:http://www.uniformserver.com/ 3.5是英文版,不过就几个巨简单的单词

:)

本版积分规则