0

I try to do php artisan migrate , but I get an error.

I check the database,user name, password, I tried with sudo, but nothing worked.

enter image description here

Beusebiu
  • 1,433
  • 4
  • 23
  • 68
  • Does this answer your question? [How to fix Error: laravel.log could not be opened?](https://stackoverflow.com/questions/23411520/how-to-fix-error-laravel-log-could-not-be-opened) – julianstark999 Mar 19 '20 at 14:22
  • The group is already in www-data ,also I try to give permission 775, but the same. – Beusebiu Mar 19 '20 at 14:26
  • Does your app work outside migration commands? – user8555937 Mar 19 '20 at 14:42
  • If it does it's strange. Disable the logging engine each time you run the migrations and try again: https://stackoverflow.com/a/26325499/8555937 – user8555937 Mar 19 '20 at 14:44

1 Answers1

0

I found out the solution.

First thing: (to access laravel.log)

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

Second one:

sudo apt install php7.2-pgsql
Beusebiu
  • 1,433
  • 4
  • 23
  • 68