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
You should check all database accesses in
config/database.php
file. If the access is correct, try reading the configuration cache withphp 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)I had that error after fresh install…After restarting the php server, the error was gone