Hi,
After deploying my site on hostgator (on main PUBLIC_HTML folder) that included:

- copying all the folders
- dumping and importing db as sql
- configuring settings.php

I am constantly being redirect to .../core/install.php


My connection with mysql database has been checked - it is fine and it connects well.
(When changing one of the connection parameters in  the value @database in the settings.php, I get a message that: "Backdrop already installed" - I think it means that the original values where ok)

I checked the file/folder permissions, I also checked the .htaccess - all looks good.

I am lost... Anybody can help?

Comments

Hi eldanet...,
 

Delete your install.php file, if you've migrated the site it's not needed.


Check your database settings in the settings.php file...

The format should be 

$database = 'mysql://[username]:[password]@[path]/[username]';

Username is your DB username
Password
Path could be "localhost", "127.0.0.1" or it could be a server address

Check those first and see how you get in.

Hope this helps.

Steve

The database connection settings have been simplified in recent releases, so may look a little different than what Steve mentions (which should still work, if you prefer that format). See here for how things look currently out of the box:

https://github.com/backdrop/backdrop/blob/1.x/settings.php#L17-L22

$database = array(
  'database' => 'database_name',
  'username' => 'user',
  'password' => 'pass',
  'host' => 'localhost',
);

I would take the redirect to the install file as an indication that the database connection is not working, and double/triple check all of the above values.

Good catch @laryn.

With it being a migration, I assumed the database credentials would be the old style.

The old D7 style for database credentials will also work.

Thanks for all the fast responds.
I finally found the solution.
Instead of dumping the Database into a file with phpMyAdmin,
I installed the module for Backup and Upgrade and dumped the sql db with it.
when importing the sql db file into my site, it finally worked.