Skip to content

Instantly share code, notes, and snippets.

@lunodrade
Created June 17, 2019 16:31
Show Gist options
  • Save lunodrade/0691fddf94bc5c16a1b72b2bae2ab24b to your computer and use it in GitHub Desktop.
Save lunodrade/0691fddf94bc5c16a1b72b2bae2ab24b to your computer and use it in GitHub Desktop.
Soluções para erros comuns

Erros comuns

Faltando phpize

Precisa instalar o php-dev

$ sudo apt install php-dev

SQLSTATE[HY000] [2002] php_network_getaddresses

Erro reportado como "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known", resolva abrindo o arquivo .env na base do diretório do projeto, e então mude o seguinte: DB_HOST=http://localhost/DB_HOST=localhost

/storage/logs/ could not be opened: failed to open stream: Permission denied"

Erro de permissão pra write no storage / log ps aux | egrep '(apache|httpd)'

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
sudo chown -R $USER:www-data storage && chown -R $USER:www-data bootstrap/cache
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment