【发布时间】:2018-07-21 12:04:45
【问题描述】:
在虚拟主机中有以下配置。当我通过 MAMP 运行它时,它总是返回 500 错误。不知道出了什么问题。停止 mamp 并使用代客运行它。 laravel 网站运行成功。引导/缓存和存储的权限看起来不错。错误日志是空的,无法调试,并且在 .env 文件中将调试设置设置为 true。仅存在 500 错误的访问日志。下面是我为 MAMP 提供的虚拟主机配置。 vhosts 文件中的其他网站工作。
<VirtualHost *:80>
ServerName elearn.localhost
ServerAlias elearn.localhost
DocumentRoot "/Users/user1/code/elearn/public"
ErrorLog "/Users/user1/logs/elearn.localhost-error_log"
CustomLog "/Users/user1/logs/elearn.localhost-access_log" common
<Directory "/Users/user1/code/elearn/public">
DirectoryIndex index.php
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
Satisfy Any
</Directory>
</VirtualHost>
【问题讨论】:
-
谁能帮帮我?
-
谁能帮忙解决这个问题
-
在某个地方您应该能够访问一些包含一些详细信息的错误日志,因为这丢失了我假设是简单的错误。你的根文件夹中是否有一个 .htaccess 文件来启用漂亮的 URL?
-
你检查 laravel.log 文件了吗?如果是 500 错误,则必须将错误记录在 storage/logs/laravel.log 文件中