0
我花了我的晚上运行我的laravel应用程序托管。Laravel 5 geting 500错误托管
在mac os上的localhost中一切正常,但在ubuntu上托管我得到500错误。
我没有任何线索。
的.htaccess根
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
# Deny accessing below extensions
<Files ~ "(\.json|\.lock|\.git)">
Order allow,deny
Deny from all
</Files>
# Deny accessing dot files
RewriteRule (^\.|/\.) - [F]
,并在的.htaccess公共
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteBase/
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
如果我删除/public/.htaccess我得到server error 500
否则我得到Server error The website encountered an error while retrieving http://oboi.spb.ru/. It may be down for maintenance or configured incorrectly.
你无法为Apache DocumentRoot的设置到服务器上的'public'目录? – Bogdan
你得到laravel的500错误吗?你能启用调试并显示错误吗? –
看看文件夹的权限(存储,日志) '存储'文件夹应该有应用程序,框架,日志和引导/缓存 – erajuan