Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"php artisan migrate" error #362

Open
AlexeyPla opened this issue Jun 24, 2022 · 1 comment
Open

"php artisan migrate" error #362

AlexeyPla opened this issue Jun 24, 2022 · 1 comment

Comments

@AlexeyPla
Copy link

AlexeyPla commented Jun 24, 2022

when i run

php artisan migrate

i gat an error:

> Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/html/laravel-gitscrum/bootstrap/app.php on line 14
> 
> Error: Class 'Illuminate\Foundation\Application' not found in /var/www/html/laravel-gitscrum/bootstrap/app.php on line 14
> 
> Call Stack:
>     0.0009     377384   1. {main}() /var/www/html/laravel-gitscrum/artisan:0
>     0.0160     483000   2. require_once('/var/www/html/laravel-gitscrum/bootstrap/app.php') /var/www/html/laravel-gitscrum/artisan:18

and when a try to execute

composer update --no-scripts

i get

> Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
> 
> Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.#

how to fix this issue ?


PHP 7.1.15

uname -a

Linux 0ff336566319 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 GNU/Linux

@AlexeyPla
Copy link
Author

AlexeyPla commented Jun 24, 2022

i found an advice

To get the current memory_limit value, run:

php -r "echo ini_get('memory_limit').PHP_EOL;"
Try increasing the limit in your php.ini file (ex. /etc/php5/cli/php.ini for Debian-like systems):

; Use -1 for unlimited or define an explicit value like 2G
memory_limit = -1
https://getcomposer.org/doc/articles/troubleshooting.md

So i add string "memory_limit = -1" to
./config/php.ini:/usr/local/etc/php/php.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant