I have installed PHP through Homebrew and I'm using Laravel Valet to serve my projects locally. I would like to update the memory_limit
in PHP.ini but for some reason it looks like it's not updating.
If I run php --ini
I get:
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File: /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.4/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
I've updated memory_limit
in both /usr/local/etc/php/7.4/php.ini
and /usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
.
Then I run:
brew services restart php@7.4
and
valet restart
If I then display phpinfo()
in my project it still says memory_limit = 128M
.