Error when trying to clear cache with a Symfony2 project
You should try to increase your memory limit in the php.ini
that is used for your CLI ( command line interface ).
Looks like PHP is eating more than the allowed 128M
during the cache:clear
process.
The directive is memory_limit
- try:
memory_limit = 256M
You can find your php.ini
using ...
php -i | grep ini (*nix)php -i | findstr ini (windows cmd)
... if your cli is using the same php.ini
as your webapplication - you can aswell create a file with content and access it through your webserver:
<?phpphpinfo();
... or probably the easiest way just click the PHP logo in symfony's web toolbar and look out for for Loaded Configuration File
( only if cli doesn't use a different php.ini
).