我想根據「Pro Zend框架技術 - 構建完整的CMS項目」一書中的說明配置Zend Server CE。錯誤配置Zend服務器
書中有我做到以下幾點:
阿爾特的httpd.conf來自:
DocumentRoot "C:\Program Files\Zend\Apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
到:
DocumentRoot "C:/Program Files/Zend/Apache2/htdocs/rlms/public"
<Directory "C:\Program Files\Zend\Apache2\htdocs\rlms">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
我也在改變的application.ini:
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
發送至:
resources.frontController.controllerDirectory = APPLICATION_PATH "/layouts/scripts"
我的反斜槓和/或正斜槓是否有問題?當要http://localhost和http://localhost/rlms/public,收到以下堆棧跟蹤:
致命錯誤:未捕獲的異常 'Zend_Controller_Dispatcher_Exception' 與消息中C '指定(誤差)無效控制器':\ Program Files文件\ Zend的\ ZendServer對其進行訪問\共享\ ZendFramework \ library \ Zend \ Controller \ Dispatcher \ Standard.php:242堆棧跟蹤:#0 C:\ Program Files \ Zend \ ZendServer \ share \ ZendFramework \ library \ Zend \ Controller \ Front.php(946):Zend_Controller_Dispatcher_Standard-> dispatch (Zend_Controller_Request_Http),Object(Zend_Controller_Response_Http))#1 C:\ Program Files \ Zend \ ZendServer \ share \ ZendFramework \ library \ Zend \ Application \ Bootstrap \ Bootstrap.php(77):Zend_Controller_Front-> dispatch()#2 C:\ Program Files \ Zend \ ZendServer \ share \ ZendFramework \ library \ Zend \ Application.php(358):Zend_Application_Bootstrap_Bootstrap-> run()#3 C:\ Program Files \ Ze nd \ Apache2 \ htdocs \ rlms \ public \ index.php(26):Zend_Application-> run()#4 {main}拋出C:\ Program Files \ Zend \ ZendServer \ share \ ZendFramework \ library \ Zend \ Controller \ Dispatcher \ Standard.php 242行
...任何想法?謝謝!