dongzai0020 2015-07-14 14:07
浏览 34
已采纳

我只是不能部署一个Laravel 5应用程序

Im trying to deploy a laravel 5 aplication.

So, im using a LAMP + PHPADMIN image from digital ocean

I installed git and downloaded my laravel 5 aplication, after this, I installed composer and used the command "composer install".

So, when I try to acces localhost/myapp/public its only a white screen and when I try some route I get 404 from Apache.

What did I Missed?

  • 写回答

1条回答 默认 最新

  • drvntaomy06331839 2015-07-14 14:14
    关注

    The framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module.

    If the .htaccess file that ships with Laravel does not work with your Apache installation, try this one:

    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?