skip to Main Content

I ve just recently discovered OctoberCMS. Everything works perfectly on my localhost server. Once i deploy to production server i get the following error:

“Database missing

A database is required to access the back-end. Check the database is configured and migrated before trying again.”

I have tried installing from cPanel and have also tried ftp and making sure the .env reflects my production database details, but still getting same error.

Can anyone here plz help? Thanks a lot in advance.

2

Answers


  1. You should check all database accesses in config/database.php file. If the access is correct, try reading the configuration cache with php artisan config:clear.
    If this does not help, and the error does not change, it is worth checking the availability of the library responsible for connecting to the base in your php.ini file. In my case, the problem was exactly there (the library was closed)

    Login or Signup to reply.
  2. I had that error after fresh install…After restarting the php server, the error was gone

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search