【发布时间】:2010-10-29 01:58:05
【问题描述】:
我只是设置我的测试环境,几个问题。
- 我正在使用 MAMP,我的文档根目录是否应该指向 MAMP 中的 htdocs 文件夹?
- MAMP 当前使用 .:Applications/MAMP/conf/php5/php.ini 中的 php.ini 文件,如何让它使用 /var/www/projectname/ 文件夹中的 php.ini?
-
我收到以下错误,仅仅是因为我没有设置任何控制器吗?
致命错误:在 /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/include/Zend/Controller/Dispatcher/Standard.php 中未捕获的异常“Zend_Controller_Dispatcher_Exception”和消息“指定的控制器无效(错误)” :241 堆栈跟踪:#0 /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/include/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http )) #1 /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs/index.php(7): Zend_Controller_Front->dispatch() #2 {main} 抛出 /Users/kieransenior/Development/ 241 行上的reformsoft_dietron/trunk/var/www/dietron/include/Zend/Controller/Dispatcher/Standard.php
有谁愿意伸出援手?
编辑:
这是我的 httpd.conf,位于我的 var/www/proj 文件夹中
<VirtualHost *:*>
ServerName localhost
DocumentRoot /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs
<Directory /Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/htdocs>
AllowOverride All
Options All
</Directory>
php_value include_path .:/Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/include:/usr/local/lib/pear
php_value magic_quotes_gpc off
php_value register_globals off
</VirtualHost>
这不起作用,所以在我的 php.ini 文件中我有以下内容:
include_path = ".:/Applications/MAMP/bin/php5/lib/php:/Users/kieransenior/Development/reformsoft_dietron/trunk/var/www/dietron/include"
但我不想那样做,我希望能够使用 httpd.conf。这只是实现同一目标的两种方法吗?
【问题讨论】:
标签: php zend-framework mamp