CLI installation

These instructions are for command line AbanteCart eCommerce application installation. 

This CLI installer makes it possible to install AbanteCart without the need to use web browsers: place the content of the zip archive on your web server, and you can install it with the command-line interface (CLI). Any CLI software can be used.

 

Set the required permissions before installation

make sure writable

Recursive write permission on /system/config.php

Recursive write permission on /system/

Recursive write permission on /image/

Recursive write permission on /download/

Recursive write permission on /extensions/

Recursive write permission on /resources/

Recursive write permission on /admin/system/

 

in the terminal go to the directory where AbanteCart files are located

cd /path/server/htdocs/

 

To see the CLI installer help use the command:

php ./install/cli_install.php

 

To start the installation, you need to provide arguments:

  • db_host The database server address. Usually, it is localhost

  • db_name The name of the database you want to use.

  • db_user The username for the database you want to use.

  • db_password The password for the database username above.

  • http_server The domain where you want your store to appear.

  • admin_path The unique key to access your AbanteCart admin

  • db_driver Required argument to set a database driver

start the installer script with this command:

php ./install/cli_install.php install --db_host=127.0.0.1 --db_user=admin --db_password=pass --db_name=abantecart --db_driver=amysqli --db_prefix=abc_ --admin_path=admin --username=admin --password=admin --email=admin@admin.com --http_server=http://localhost --with-sample-data=abantecart_sample_data.sql

 

AbanteCart, all rights reserved. 2024 ©