Internal Server Error 这个错误怎么弄?
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
我在机器上重新安装的环境 然后重新进入项目就一直出现这个,
修改AllowOverride All 不管用
rewrite_module 打开这个///就行了... - -
[[i] 本帖最后由 謎灬 于 2008-11-19 16:15 编辑 [/i]] index.php
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
date_default_timezone_set('Europe/London');
set_include_path('.' . PATH_SEPARATOR . '../library/'
. PATH_SEPARATOR . '../appliction/models'
. PATH_SEPARATOR . get_include_path());
include "Zend/Loader.php";
Zend_Loader::registerAutoload();
$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(true);
$frontController->setControllerDirectory('../appliction/controllers');
Zend_Layout::startMvc(array('layoutPath'=>'../appliction/layouts'));
// run!
$frontController->dispatch();
.htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
Options -Indexes
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag short_open_tag on
IndexController.php
<?php
class IndexController extends Zend_Controller_Action
{
function indexAction(){
$this->view->title = " join ";
$this->view->boy="This is Index!";
}
function addAction()
{
$this->view->title = " my ";
$this->view->boy="This is Add!";
}
function editAction()
{
}
function deleteAction()
{
}
}
?>
页面都有.. 不使用IIS,用apache+php的路过。。。 WampServer2.0c 用这个装的一套... PHP+APACHE+MYSQL
页:
[1]
