Command Line Installation Wizard

Last modified by Crucial on Tue, September 16, 2008 20:21
Source|Old Revisions  |  Back To Group

The typical installation scenario for SSH goes something like this:

  1. Grab the Magneto GZIP file
  2. Extract the files
  3. Set the appropriate permissions
  4. Run through the web-based installer

But did you know you can even use SSH to bypass the web-based installer and do it directly from the command line? Here’s how to do it:

After you’ve gone through the basic installation steps, run the following command:

  1. php-cli -f install.php -- \
  2. --license_agreement_accepted yes \
  3. --locale "en_US" --timezone "America/Los_Angeles" --default_currency "USD" \
  4. --db_host "DBHOST" --db_name "DBNAME" --db_user "DBUSER" --db_pass "DBPASS" \
  5. --url "DOMAIN" --use_rewrites "yes" \
  6. --use_secure "no" --secure_base_url "" --use_secure_admin "no" \
  7. --admin_firstname "FNAME" --admin_lastname "LNAME" --admin_email "EMAIL" \
  8. --admin_username "USERNAME" --admin_password "PASSWORD"

You’ll want to replace the values in red, specifically the capitalized ones, with the correct information:

  • DBHOST - Databae hostname, usually just localhost
  • DBNAME - The name of your database
  • DBUSER - The username with rights to the database
  • DBPASS - The password for the database user
  • FNAME - The store owner’s first name
  • LNAME - The store owner’s last name
  • EMAIL - The store owner’s email address
  • USERNAME - The administrator’s username
  • PASSWROD - The administrator’s password

After you run that, it will tell you Magento was installed successfully and output an encryption key.

You can change other values from the command above as well, like the timezone, default currency, etc. For a list of all the options available, view the source code for the install.php file.


Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs