Skip Navigation

Quick way edit your Mac's PHP memory limit

In this setup using Laravel Valet
Type the following into the terminal:
php --ini

then look for a line that looks kinda like this, your PHP version may be different:

then edit that file with nano 
nano /usr/local/etc/php/7.3/conf.d/php-memory-limits.ini

you will see something like this:
; Max memory per instance
memory_limit = 128M

;The maximum size of an uploaded file.
upload_max_filesize = 128M

;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize
post_max_size = 128M


Edit your values as needed

Related Snippets

See all