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]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊