PHP致命错误Zend未捕获的exception

我正在使用Zend Framework 1.11开发一个在Centos服务器上托pipe的站点。 Apache正在运行,而documentroot被设置为“var / www / html / public”。 当我从我的Zend Framework项目中拷贝我的index.php文件到这个目录并浏览到http://www.localhost时什么都没有出现,当浏览到localhost / html / public / index.php时也是如此。

我注意到,Zend Framework文件夹需要被复制到/ usr / share / php / Zend,直到我今晚创build它才存在。 在复制Zend文件夹之后,我的浏览器仍然给出一个空白页面。 我使用了php -f /var/www/html/public/index.php并收到以下错误:

PHP Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/var/www/html/application/configs/application.ini): failed to open stream: No such file or directory' in /usr/share/php/Zend/Config/Ini.php:182 Stack trace: #0 /usr/share/php/Zend/Config/Ini.php(202): Zend_Config_Ini->_parseIniFile('/var /www/html/a...') #1 /usr/share/php/Zend/Config/Ini.php(126): Zend_Config_Ini->_loadIniFile('/var /www/html/a...') #2 /usr/share/php/Zend/Application.php(386): Zend_Config_Ini->__construct('/var /www/html/a...', 'production') #3 /usr/share/php/Zend/Application.php(85): Zend_Application->_loadConfig('/var /www/html/a...') #4 /var/www/html/public/index.php(24): Zend_Application->__construct('production', '/var/www/html/a...') #5 {main} thrown in /usr/share/php/Zend/Config/Ini.php on line 182 

我很快就要在星期四的最后期限之前提出,迫切需要了解需要采取什么措施来纠正这种情况。 任何人都可以协助

谢谢

从错误消息中得出的这个问题的简短答案是,在/var/www/html/application/configs目录中没有应用程序ini文件。 你将需要知道你在哪里find项目configuration文件。 如果没有更详细的信息,很难提供更好的帮助,尽pipeZend程序员参考指南中的相关Zend_Application部分是一个很好的起点。