Laravel MAMP Vhosts问题

Ara*_*rav 7 mamp laravel

在vhosts中有以下配置.当我通过MAMP运行时,它总是返回500错误.不确定有什么问题.停止使用mamp并使用代客运行它.laravel网站成功运行.引导/缓存和存储的权限看起来很好.错误日志为空,cant调试和调试设置在.env文件中设置为true.仅存在500错误的访问日志.下面是我为MAMP提供的vhosts配置.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>
Run Code Online (Sandbox Code Playgroud)

小智 2

你正在使用什么版本的 Laravel,如果是 5.6,请确保你在 MAMP 中至少运行 PHP 7.1 - 我自己也犯过几次错误?