Environment: Debian 10.3, PHP 7.2, Apache2, MariaDB 10.3.22
I noticed a very weird error when trying to do a clean install of the latest ATOM today. I was immediately getting an HTTP 500 error, and the apache2 error.log showed:
[Mon Feb 10 15:10:42.071855 2020] [php7:error] [pid 23741] [client
192.168.1.99:54792] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in /var/www/html/cache/qubit/prod/config/config_core_compile.yml.php on line 3724
Now I was already familiar with the usual increasing the memory limit in php.ini, but this time it didn't work! Tried lots of values, but would always fail with the same previously mentioned PHP fatal error. Eventually I tried the unlimited memory setting (memory_limit = -1MB) and the error went away. It is apparently not best practices though.
Also, after completing the install, if I set memory_limit to any value besides -1, the error comes right back.
Edit: setting memory_limit=-1 didn't fix everything. When running php symfony, I still got the same PHP fatal error so I edited the symfony file as follows: ini_set('memory_limit', '1024M'); // or you could use 1G