Problem with migration

Hi, sorry for my English, I’m using a translator.

I’m having a problem, they asked me to migrate from hosting a site.

The first thing I did was download the files via ftp and upload them to the new server, then export the database and import it to the new server, finally enter the conf.php file and modify the url and the data of the database .

However when entering the url

http://santiagor221.sg-host.com/CRM

it gives me the following error
Error: Dolibarr config file content seems to be not correctly defined.
Please run dolibarr setup by calling page /install.

Could you help me?

Thank you!

Hello :slight_smile:

you may find the problem in your conf.php file, probably in database acces parameters…

Good continuation

Thanks for the reply.

I searched everything but I still can’t figure it out, this is what I have in the conf.php

do you see any error?

Thank you so much!

<?php

$dolibarr_main_instance_unique_id='bb33e2db3cc043c9be86f397feec863d';

$dolibarr_main_url_root='http://santiagor221.sg-host.com/CRM';

$dolibarr_main_document_root='/public_html/CRM';

$dolibarr_main_data_root='/public_html/CRM/documents';

$dolibarr_main_db_host='localhost';

$dolibarr_main_db_port="";

$dolibarr_main_db_name='xxxxx';

$dolibarr_main_db_user='xxxxx';

$dolibarr_main_db_pass='xxxxx';

$dolibarr_main_db_type='mysqli';

$dolibarr_main_db_character_set="utf8";

$dolibarr_main_db_collation="utf8_unicode_ci";

$dolibarr_main_authentication="dolibarr";



// Specific settings

$dolibarr_main_force_https="0";

$dolibarr_main_prod="0";

$dolibarr_main_restrict_os_commands='mysqldump, mysql, pg_dump, pgrestore';

$dolibarr_main_restrict_ip='';

$dolibarr_nocsrfcheck="0";

$dolibarr_mailing_limit_sendbyweb="0";

?>

Hello :slight_smile:

it’s probably because your $dolibarr_main_db_host value is incorrect

you can find this error message in dolibarr’s source, in filefunc.inc.php


so that means your $dolibarr_main_document_root is incorrect…

good continuation

I tried but I still can’t finish the migration, thanks a lot for the help anyway.