Laravel:设置虚拟主机Laravel [英] Laravel: Set up Laravel vhost

查看:669
本文介绍了Laravel:设置虚拟主机Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所以我设置Laravel,但它一直重定向到哎呦出事了页

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>

我有l1.mysite.com在我的hosts文件,并。而在我的httpd.conf文件的LoadModule rewrite_module模块/ mod_rewrite.so包括(无#)和我的httpd-vhosts.conf也包括在内。任何帮助是AP preciated感谢。

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.

推荐答案

如果您收到哎呦:出了错,这意味着PHP其实就是做这件事正确和您的虚拟主机可能不是问题。什么是错误讯息,你得到什么?

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?

您可能需要:


  1. 确保你已经安装的依赖关系(如在评论中所指出作曲安装作曲更新

  2. 确保应用程序/存储目录(和子目录)是可写的PHP。

  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.

这篇关于Laravel:设置虚拟主机Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆