zf配置出错…解决思路
程序员文章站
2024-01-12 10:25:52
...
zf配置出错……
zf 配置出错:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)' in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\wamp\Apache2.2\htdocs\zendframework\index.php(29): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 242
在standard.php在242行:
require_once 'Zend/Loader.php';
/** Zend_Controller_Dispatcher_Abstract */
require_once 'Zend/Controller/Dispatcher/Abstract.php';
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 24
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\php5\pear') in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 24
------解决方案--------------------
zendframework配置方法
1:在php.ini文件里面include_path里面引入你的zendframework包的路径 ,例如:include_path = ".;D:\xampp\php\PEAR;d:wamp\library"
2:开启apache配置文件里面的 LoadModule rewrite_module modules/mod_rewrite.so 模块
3:重启服务就ok
zf 配置出错:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index.php)' in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\wamp\Apache2.2\htdocs\zendframework\index.php(29): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 242
在standard.php在242行:
require_once 'Zend/Loader.php';
/** Zend_Controller_Dispatcher_Abstract */
require_once 'Zend/Controller/Dispatcher/Abstract.php';
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 24
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.;C:\php5\pear') in D:\wamp\Apache2.2\htdocs\zendframework\library\Zend\Controller\Dispatcher\Standard.php on line 24
------解决方案--------------------
zendframework配置方法
1:在php.ini文件里面include_path里面引入你的zendframework包的路径 ,例如:include_path = ".;D:\xampp\php\PEAR;d:wamp\library"
2:开启apache配置文件里面的 LoadModule rewrite_module modules/mod_rewrite.so 模块
3:重启服务就ok
相关文章
相关视频
上一篇: 求求正则大神救救我
下一篇: json 十六进制被转换为字符串
推荐阅读
-
用cookie显示浏览历史时, unserialize出错解决思路
-
zf配置出错…解决思路
-
zend frameworks配置出错,只能访问默认控制器解决方案
-
QeePHP框架配置控制器出错 有图,望各位帮忙解决解决方案
-
PHP QeePHP框架创建控制器出错?解决思路
-
js弹窗出错。高手帮改一下。解决思路
-
SQL Server2008安装报错,解决方案(创建 system.diagnostics 的配置节处理程序时出错)
-
nginx调用php-fpm出错解决方法和nginx配置详解
-
Sql Server安装出错,安装程序配置服务器失败的解决方法小结
-
sql server 2008安装过程中服务器配置出错解决办法