Skip to content

Trouble finding where memory_limit is set #218

Discussion options

You must be logged in to vote

Hi @joostvanhoof,

The default Homebrew install of PHP 8.1 (and other PHP versions as well) ship with the memory limits file at: /opt/homebrew/etc/php/8.1/conf.d/php-memory-limits.ini.

In general, you can find out what .ini files are being used by running:

php --ini

which will output:

➜  ~ php --ini
Configuration File (php.ini) Path: /opt/homebrew/etc/php/8.2
Loaded Configuration File:         /opt/homebrew/etc/php/8.2/php.ini
Scan for additional .ini files in: /opt/homebrew/etc/php/8.2/conf.d
Additional .ini files parsed:      /opt/homebrew/etc/php/8.2/conf.d/error_log.ini,
/opt/homebrew/etc/php/8.2/conf.d/ext-opcache.ini,
/opt/homebrew/etc/php/8.2/conf.d/php-memory-limits.ini,

You shou…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joostvanhoof
Comment options

Answer selected by joostvanhoof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants