Search code examples
symfony1

How to solve error memory size of bytes exhausted


I am trying to install symfony on wamp

http://trac.symfony-project.org/wiki/HowToInstallSymfonyOnWindowsWithWamp

when executed second step : pear install symfony/symfony

i got an error show below , how to go round

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in /home/www/sf_projects/homepage/lib/vendor/symfony/lib/widget /sfWidgetFormDate.class.php on line 39enter image description here


Solution

  • Just increase the memory limit for your PHP Environment by setting proper value inside php.ini

    Looks like you're having just 16MB assigned, try inreasing this value.. common setting is for CLI environment.

    memory_limit = 128M
    

    You'll find the php.ini somewhere in your WAMP folder, after adjusting the value you need to restart the apache server.