zf 配置问题

yyszj0911 2011-10-19 04:34:07
刚安装完毕并且能正常显示demo内容,现在想自定义一个
结果按照http://blog.sina.com.cn/s/blog_650d2bb70100yk7z.html这里途径二的方法,将原来的index改成他的
结果就不能显示了 以下是log 的报错:
[Wed Oct 19 16:28:07 2011] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(./application/config/config.ini): failed to open stream: No such file or directory' in /usr/share/php/libzend-framework-php/Zend/Config/Ini.php:181\nStack trace:\n#0 /usr/share/php/libzend-framework-php/Zend/Config/Ini.php(201): Zend_Config_Ini->_parseIniFile('./application/c...')\n#1 /usr/share/php/libzend-framework-php/Zend/Config/Ini.php(125): Zend_Config_Ini->_loadIniFile('./application/c...')\n#2 /var/www/kimi/public/index.php(12): Zend_Config_Ini->__construct('./application/c...', NULL, true)\n#3 {main}\n thrown in /usr/share/php/libzend-framework-php/Zend/Config/Ini.php on line 181

[Wed Oct 19 16:28:07 2011] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 0 to 2 : URL /index.php
这是哪里不对 求解答,谢谢
...全文
193 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
yyszj0911 2011-10-21
  • 打赏
  • 举报
回复
你是linux么, 我用的是zf create 命令创建的
yyszj0911 2011-10-20
  • 打赏
  • 举报
回复
还是没解决 继续
ohmygirl 2011-10-20
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 yyszj0911 的回复:]
什么都没改配置文件一模一样?
[/Quote]

当然改了,下的这个zend根目录本身是没有application目录的,你需要自己建立相关的目录,或者把demo下的application目录copy一份出来。
yyszj0911 2011-10-20
  • 打赏
  • 举报
回复
什么都没改配置文件一模一样?
ohmygirl 2011-10-20
  • 打赏
  • 举报
回复
刚按照你提供的网址上面的步骤重新布置了一个zendframework。没有问题。

请注意config.ini的大小写问题。
我这里是没有问题的。
yyszj0911 2011-10-20
  • 打赏
  • 举报
回复
在呃此乃内容:
[general]

db.adapter=PDO_MYSQL

db.config.host=localhost

db.config.username=root

db.config.password=123456

db.config.dbname=zend

同目录下还有一个application.ini
ohmygirl 2011-10-20
  • 打赏
  • 举报
回复
application/config/config.ini
先确认下这个文件是否存在。

个人感觉你是的config。ini文件可能不存在。
ohmygirl 2011-10-19
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 yyszj0911 的回复:]

貌似都对的
index.php里面的内容一般都是一样的吧?
[/Quote]
index.php是网站的入口文件,几乎都是类似的。
yyszj0911 2011-10-19
  • 打赏
  • 举报
回复
貌似都对的
index.php里面的内容一般都是一样的吧?
ohmygirl 2011-10-19
  • 打赏
  • 举报
回复
确认目录,文件名是否正确,包括大小写也要正确。
yyszj0911 2011-10-19
  • 打赏
  • 举报
回复
对 ubuntu
ohmygirl 2011-10-19
  • 打赏
  • 举报
回复
文件找不到。。什么系统?linux么?

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧