Estou seguindo as aulas do Especializa TI (https://www.youtube.com/watch?v=iPTxznidNHo&list=PLVSNL1PHDWvR3PeLXz6nvBkDhv1IQk4wP&index=1), porém quando eu faço a instalação do meu laravel no vagrant ele não vai, e pior, o servidor não está interpretando o PHP... Quando executo o comando
composer create-project --p
refer-dist laravel/laravel itp
Ele responde com isso:
Installing laravel/laravel (v5.2.31)
As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them. //Toda essa frase aparece em amarelo
- Installing laravel/laravel (v5.2.31): Downloading (100%)
Created project in itp
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 57 installs, 0 updates, 0 removals
- Installing symfony/polyfill-ctype (v1.11.0): Downloading (100%)//Aqui aparece verde
Aqui aparece tudo vermelho
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
PHP Warning: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952
Warning: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952
[ErrorException]
proc_open(): fork failed - Cannot allocate memory
Pois bem, depois disso tudo eu já tentei:
- Reinstalar a VM, Vagrant e o Larevel porém não houve sucesso
- Reiniciar o computador
O que pode ser? Além do mais, qualquer arquivo que eu coloque dentro da pasta /var/www/html em formato php não interpreta... Não sei se isso tem haver com algo, mas eu consigo acessar o meu projeto tanto pelo número ip (192.168.33.10), quanto pelo local host.