简体   繁体   中英

Can't run php artisan commands on laravel

I searched everywhere but i really can't find anything. I am trying to run php artisan but it seems that it just doesn't work.

Specifically i run this command when i am connected through ssh :

/opt/cpanel/ea-php71/root/usr/bin/php artisan

It is the same with php artisan but i am choosing a specific php version (7.1.5). This command should normally show up the rest of artisan commands.

The error i get :

PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /home/username/laravel/vendor/composer/autoload_static.php on line 274

My hosting provider tried to increase the memory limit but nothing happened. I tried increasing it a lot through .php files too.

Also i have tried running composer install/update/clear cache/dump autoload.

Please ask for further information if needed,

Any ideas?

Try to check spelling in the php.ini file. That happened to me when I set memory_limit = 512MB (that is false) instead of memory_limit = 512M (wich is correct). For some reason php understood it as 2MB of memory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM