Laravel:设置虚拟主机Laravel [英] Laravel: Set up Laravel vhost
问题描述
嗨所以我设置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?
您可能需要:
- 确保你已经安装的依赖关系(如在评论中所指出
作曲安装
或作曲更新
- 确保
应用程序/存储
目录(和子目录)是可写的PHP。
- Make sure you've installed dependencies (as noted in comments
composer install
orcomposer update
- Ensure
app/storage
directory (and sub directories) are writable by PHP.
这篇关于Laravel:设置虚拟主机Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!