-2

I have just installed Laravel on my web server but after I run the php artisan serve command and navigate to my server's Laravel URL I am getting this error:

[Tue Oct 15 11:38:54 2019] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 77824 bytes) in /Users/apple/eAT/vendor/composer/ClassLoader.php on line 444
Max
  • 295
  • 3
  • 10
  • 2
    Possible duplicate of [Allowed memory size of 536870912 bytes exhausted in Laravel](https://stackoverflow.com/questions/34864524/allowed-memory-size-of-536870912-bytes-exhausted-in-laravel) – Salman Zafar Oct 15 '19 at 08:47

1 Answers1

1

You can increase the memory allocation to PHP by editing the memory_limit variable in php.ini file.

Alternatively, you can edit the .htaccess file and add php_value memory_limit 256M to set memory limit for specific application where 256 is the memory allowed to the application. This, however, isn't tested by me.

You may need to restart your PHP server.