Author Topic: DB_DRIVER  (Read 6252 times)

Offline onyxnz

  • Newbie
  • *
  • Posts: 23
  • Karma: +7/-0
    • View Profile
DB_DRIVER
« on: March 12, 2017, 03:41:24 PM »
I am having trouble installing latest version on localhost, where I do all my dev work;
LinuxMint18.1 with Nginx and PHP7-FPM with MariaDB.
I get to /install/index.php?rt=install&runlevel=1 after submitting the config form, and it starts the progress scroller, then this:

Following error has occurred during installation:
OK:
Name   Info
10000::database error
Error: Could not load database file DB_DRIVER! in /home/onyx/htdocs/AbanteCart/public_html/core/lib/db.php on line 46


Config.php is writeable.
I have tried by Mysqli and PDO options for database, but it is still just using the POST field name DB_DRIVER to search for the database driver...wot the?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: DB_DRIVER
« Reply #1 on: March 13, 2017, 03:41:23 AM »
did you tried cli install? i mean file https://github.com/abantecart/abantecart-src/blob/master/public_html/install/cli_install.php
see comments for run command
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline onyxnz

  • Newbie
  • *
  • Posts: 23
  • Karma: +7/-0
    • View Profile
Re: DB_DRIVER
« Reply #2 on: March 13, 2017, 05:42:38 AM »
Yes I did, and noticed that the comment documentation in the header of that file is very wrong, too.

php cli_install.php install --db_host localhost --db_user onyx --db_password mariadb --db_name abantecart --db_prefix hk1_ --admin_path onyx_hkadmin --db_driver mysqli --db_port 3306 --username onyx --password mypassword --email myemail @ gmail.com

had to remove --http_server directive for this post due to defeat inability to post external links! and added spaces to email address
results in:
FAILED! Pre-installation check failed: Invalid E-Mail!
   Error: Could not load database file 1!


Offline onyxnz

  • Newbie
  • *
  • Posts: 23
  • Karma: +7/-0
    • View Profile
Re: DB_DRIVER
« Reply #3 on: March 13, 2017, 05:52:11 AM »
is there a sample config.php file somewhere ?
I want to try with that written manually

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: DB_DRIVER
« Reply #4 on: March 13, 2017, 06:02:53 AM »
you have error in command.
should to set
Code: [Select]
--db_driver=amysqli
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline onyxnz

  • Newbie
  • *
  • Posts: 23
  • Karma: +7/-0
    • View Profile
Re: DB_DRIVER
« Reply #5 on: March 13, 2017, 03:05:12 PM »
Tried that with same results -
FAILED! Pre-installation check failed: Invalid E-Mail!
   Error: Could not load database file 1!

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: DB_DRIVER
« Reply #6 on: March 14, 2017, 05:43:35 AM »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline onyxnz

  • Newbie
  • *
  • Posts: 23
  • Karma: +7/-0
    • View Profile
Re: DB_DRIVER [solved]
« Reply #7 on: March 14, 2017, 08:05:51 AM »
AHA!

So the '=' are required, which is totally different from the documentation inside cli_install.php which says:

 * Command line tool for installing AbanteCart
 *
 * Usage:
 * cd install
 *
 *    php cli_install.php install
 *                               --db_hostname localhost
 *                                --db_username root
 *                                --db_password pass
 *                                --db_database abantecart
 *                                --db_driver mysqli
 *                                --db_port 3306
 *                                --username admin
 *                                --password admin
 

So now I have managed to install, thanks.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: DB_DRIVER
« Reply #8 on: March 14, 2017, 12:52:00 PM »
oh.. i thought you had tried to run script with --help or without any arguments to view syntax:)
Anyway comment is already corrected
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod