我想上传一个网站的共享服务器。在共享服务器上设置Yii1.13错误
结构
- 的public_html
- Yii的(文件夹)
- 的index.php(根文件夹中)
我只是得到这个消息“服务器错误”。请谁能告诉我哪里出了问题,或者我应该在我的代码更改,使其work.here是我的指数代码:
<?php
// yii directory paths<br/>
$yii=dirname(__FILE__).'/yii/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode<br/>
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message<br/>
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
Yii::createWebApplication($config)->run();
?>
第一件事我会检查是PHP是否启用并正常工作(创建的phpinfo()页),并仔细检查所有的路径。另外你的虚拟主机可能有一些服务器日志,希望有更多关于错误的详细信息 – Rowan
我使用yii需求检查,它告诉服务器配置对于yii是可以的。我安装一个值得欢迎的Yii应用,它加载很好(((但在同一服务器上我的web应用程序是深藏不露只有服务器错误。 – Tchaps
Rowan-谢谢!谢谢 – Tchaps