Reaching the Memory Limit Running Laravel Valet

If you ever get this error “PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted ” while running Laravel Valet, check out the path below for Mac users. It seems that this is the specific memory-limit ini file that Valet uses, and you can edit the memory limits there.

/usr/local/etc/php/7.0/conf.d/php-memory-limits.ini

Note that 7.0 is the PHP version you are using.

If the above does not work also try looking at the following conf file.

/usr/local/etc/php/7.x/php-fpm.d/valet-fpm.conf

Good luck!

4 thoughts on “Reaching the Memory Limit Running Laravel Valet”

Leave a Comment