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

codeIgniter安装失败

[复制链接]
发表于 2014-1-1 21:02:21 | 显示全部楼层 |阅读模式
本帖最后由 上校门卫 于 2014-1-1 21:37 编辑

我是新手,
刚安装就失败了:
如下:
Warning:  require(application/config/constants.php) [function.require]: failed to open stream: No such file or directory in E:\apache_php_mysql\Apache Software Foundation\Apache2.2\htdocs\CodeIgniter\system\core\CodeIgniter.php on line 64

Fatal error:  require() [function.require]: Failed opening required 'application/config/constants.php' (include_path='.E:\apache_php_mysql\jpgraph') in E:\apache_php_mysql\Apache Software Foundation\Apache2.2\htdocs\CodeIgniter\system\core\CodeIgniter.php on line 64

麻烦各位了
文件及文件夹结构是这样子的


如果文件结构改为这样:


则出现这样的错误:
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
我在config.php文件中已经改为:
$config['base_url']    = 'http://127.0.0.1/myobject/';
发表于 2014-1-1 22:49:49 | 显示全部楼层
把 $config['base_url']    = 'http://127.0.0.1/myobject/' 改为 $config['base_url']    = ''。如何你使用的是最新版codeigniter,系统自己算出的base_url 会是 http://127.0.0.1/CodeIgniter
 楼主| 发表于 2014-1-1 23:02:30 | 显示全部楼层
gbwaini2009 发表于 2014-1-1 22:49
把 $config['base_url']    = 'http://127.0.0.1/myobject/' 改为 $config['base_url']    = ''。如何你使 ...

我在github中下载的就没有问题了,谢谢了

本版积分规则