Reputation: 2522
I have /etc/opt/remi/php80/php.ini
memory_limit = 2048M
when i do: php -r "echo ini_get('memory_limit').PHP_EOL;"
I get: 2048M
phpinfo() shows
Loaded Configuration File /etc/opt/remi/php80/php.ini
memory_limit 128M 128M
what am i missing?
notes:
memory_limit does not exist in any other ini file in any folder/subfolder of this dir.
I have restarted apache numerous times.
Upvotes: 1
Views: 832
Reputation: 121
Memory limit is decoded into a signed 32 bit integer number of bytes so you may be overflowing. Why not set it to -1 which is unlimited. Also if you're running php-fcgi then you need to restart that service rather than Apache.
Upvotes: 1