News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

DB_DRIVER

Started by onyxnz, March 12, 2017, 03:41:24 PM

Previous topic - Next topic

onyxnz

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?

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

onyxnz

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!


onyxnz

is there a sample config.php file somewhere ?
I want to try with that written manually

abolabo

you have error in command.
should to set
--db_driver=amysqli
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

onyxnz

Tried that with same results -
FAILED! Pre-installation check failed: Invalid E-Mail!
   Error: Could not load database file 1!

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

onyxnz

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.

abolabo

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

Forum Rules Code of conduct
AbanteCart.com 2010 -