Skip to content

Instantly share code, notes, and snippets.

@olimortimer
Created August 7, 2012 10:23
Show Gist options
  • Save olimortimer/3284352 to your computer and use it in GitHub Desktop.
Save olimortimer/3284352 to your computer and use it in GitHub Desktop.
CLI: Magento Install
version=1.7.0.2
wget http://www.magentocommerce.com/downloads/assets/$version/magento-$version.tar.gz
tar -zxvf magento-$version.tar.gz
mv magento/* magento/.htaccess .
chmod -R o+w media var
chmod o+w app/etc
rm -rf magento/ magento-$version.tar.gz
rm -rf index.php.sample LICENSE.txt LICENSE.html LICENSE_AFL.txt php.ini.sample RELEASE_NOTES.txt
php -f install.php -- \
--license_agreement_accepted "yes" \
--locale "en_GB" \
--timezone "Europe/London" \
--default_currency "GBP" \
--db_host "localhost" \
--db_name "magento" \
--db_user "root" \
--db_pass "password" \
--session_save "db" \
--url "http://192.168.0.1/oli/magento/" \
--skip_url_validation "yes" \
--use_rewrites "yes" \
--use_secure "no" \
--secure_base_url "" \
--use_secure_admin "no" \
--admin_firstname "Oli" \
--admin_lastname "Mortimer" \
--admin_email "me@email.com" \
--admin_username "admin" \
--admin_password "letmein"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment