kik*_*les 1 php apache remote-server web-deployment laravel-4
这是我第一次上传到Laravel网站的远程服务器.
本地我已经配置了一个虚拟主机,所以我访问我的网站就像:
site.domain.com //it's pointing htdocs/laravel-proyect/public
Run Code Online (Sandbox Code Playgroud)
我已将我的网站上传到我的远程服务器,然后:
更改app.php的配置
'url'=>' http://site.domain.com ',
使用新参数(以及email.php)更改database.app中的配置
然后我尝试加载我的网站并获得500内部服务器错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, 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.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Run Code Online (Sandbox Code Playgroud)
它有点工作,我在routes.php中有这个代码:
// Begins in the login view
Route::get('/', function()
{
if (!Sentry::check()) {
$data = array();
if (Session::has('email')) {
$data = array('email' => Session::get('email'));
}
return Redirect::route('login', $data);
}
else
return Redirect::route('users');
});
/ ========================================
// LOGIN, LOGOUT AND ACTIVATION SECTION ==========
// // ============================================
// show the login page
Route::get(MyHelpers::textLang('login','routes'), array('as' => 'login', function()
{
if (Sentry::check())return Redirect::route('users');
else {
$rules = User::$rules_login;
// show the login page (app/views/frontend/login.blade.php)
return View::make('frontend.login', compact('rules'));
}
Run Code Online (Sandbox Code Playgroud)
所以在第一时间mo url看起来像:
site.domain.com/entrar
Run Code Online (Sandbox Code Playgroud)
'entrar',(以西班牙语登录),y由MyHelpers设置:: textLang('登录','路线'),访问我的班级MyHelpers和lang文件以将'login'翻译成'entrar',但不加载模板.
开始于:
其实我的.htaccess是:
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Run Code Online (Sandbox Code Playgroud)
我没有更多的想法,也找不到其他解决方案.
任何的想法?拜托,我疯了,在wensday,我必须开始一个新的项目并继续使用这个.
谢谢
归档时间: |
|
查看次数: |
5969 次 |
最近记录: |