在托管环境中安装Laravel 4应用程序时遇到问题。
目前我遇到的问题是,当我访问www.eversite时,列表中没有显示“public”文件夹。be/laravel/,有人能告诉我为什么会这样,以及我如何使它可见。
这是否与Apache有关,例如权限设置?这会很奇怪,因为我已经把文件夹改成了777。
Apache错误日志:
[Mon Jan 13 17:47:11 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here
[Mon Jan 13 17:47:19 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here
[Mon Jan 13 17:47:23 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here
.htaccess文件位于/public中/
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
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]
</IfModule>
指向phpinfo()的链接;:http://eversite.be/laravel/modrewrite.php
在更新中,文件的路径似乎不正确。如果我没有弄错的话,_DIR__在PHP5.2中可能不可用,这是您正在使用的版本。改用:
dirname(__FILE__)
自开业以来<代码>http://eversite.be/laravel/public触发500个内部服务器错误,我认为您在public/中的设置无效。htaccess
。您现在需要检查服务器日志以找到真正的错误消息。