我的异常跟http://blog.nmgline.com/space-115-do-blog-id-40.html的类似,路径问题。
Fatal error: Uncaught exception 'Zend_Log_Exception' with message '"/var/www/phpweb20/data/logs/debug.log" cannot be opened with mode "a"' in E:/web/phpweb20/include/Zend/Log/Writer/Stream.php:66 Stack trace: #0 E:/web/phpweb20/htdocs/index.php(11): Zend_Log_Writer_Stream->__construct('/var/www/phpweb...') #1 {main} thrown in E:/web/phpweb20/include/Zend/Log/Writer/Stream.php on line 66又去网上搜,发现是/var/www/phpweb20/data/logs/ 目录不存在的问题,原来网上下的源码里的 settings.ini的配置是针对于linux环境下的,而我这是windows 所以就把那些路径改成:[development]database.type = pdo_mysql
database.hostname = localhost
database.username = phpweb20
database.password = myPassword
database.database = phpweb20paths.base = E:/phpweb20
paths.data = E:/phpweb20/data
paths.templates = E:/phpweb20/templateslogging.file = E:/phpweb20/data/logs/debug.log然后再运行,就OK了,出现了 "Web site home "终于成功了。
但我用的是相对路径,以“.”开头,问题解决。