Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel MAMP Vhosts issue

Tags:

laravel

mamp

Have the below config in vhosts. Its always returns 500 error when i run it through MAMP. Not sure what is wrong. Stopped mamp and ran it using valet. laravel website runs successfully. Permissions of bootstrap/cache and storage looks good. Error logs are empty cant debug and debug setting set to true in .env file. Only access log exists with 500 error. Below is the vhosts config that i have for MAMP. Other website in vhosts file work.

<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>
like image 351
Arav Avatar asked Jul 21 '18 12:07

Arav


1 Answers

What version of Laravel are you using, if it is 5.6 make sure you're running PHP at at least 7.1 in MAMP - fallen foul of that myself a couple of times?

like image 154
pl38 Avatar answered Sep 29 '22 07:09

pl38