dti3914 2014-01-24 16:54
浏览 231

Laravel:设置Laravel vhost

Hi so I'm setting up Laravel, but it keeps redirecting to the "Whoops something went wrong page"

    <VirtualHost *:80>
     DocumentRoot "C:/xampp/htdocs/myfolder/public"
     ServerName ron@gmail.com
     ServerAlias l1.mysite.com
     <Directory "C:/xampp/htdocs/laravel/laravel/public">
     AllowOverride All
     Order Allow,Deny
     Allow from all
     Require all granted
     </Directory>
    </VirtualHost>

I have the l1.mysite.com in my hosts file as well. And in my httpd.conf file, "LoadModule rewrite_module modules/mod_rewrite.so" is included (without #) and my httpd-vhosts.conf is included as well. Any help is appreciated thanks.

  • 写回答

2条回答 默认 最新

  • dongshandun4363 2014-01-24 21:16
    关注

    If you're getting Whoops: Something went wrong, that means PHP is actually doing it's thing correctly, and your vhost might not be the issue. What's the error message you get?

    You likely need to:

    1. Make sure you've installed dependencies (as noted in comments composer install or composer update
    2. Ensure app/storage directory (and sub directories) are writable by PHP.
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号