Installing Magento automatically -
i'm thinking installing magento in automatical way. suppose need create script or something... guess i'm not first person whom need it. know resource or solution how it? work in windows , linux os. thanks. jaro.
there others out there here quick , dirty script use form time time install magento checkout svn repo , initialise modman. extended create database if required etc, works fine me is:
#!/bin/bash # required script variables db_name= db_user= db_host= db_pass= url= magento_version="1.7.0.0" admin_firstname= admin_surname= admin_email= admin_user= admin_pass= svn_repo= # download , install magento wget http://www.magentocommerce.com/downloads/assets/$magento_version/magento-$magento_version.tar.gz printf "\n\nunpacking , preparing install magento...\n" tar -zxvf magento-$magento_version.tar.gz mv magento/* magento/.htaccess . chmod -r o+w media var chmod o+w app/etc rm -rf downloader/pearlib/cache/* downloader/pearlib/download/* rm -rf magento/ magento-$magento_version.tar.gz printf "\n\ninstalling magento...\n" /usr/local/bin/php -f install.php -- \ --license_agreement_accepted "yes" \ --locale "en_gb" \ --timezone "europe/london" \ --default_currency "gbp" \ --db_host "$db_host" \ --db_name "$db_name" \ --db_user "$db_user" \ --db_pass "$db_pass" \ --url "$url" \ --use_rewrites "yes" \ --use_secure "no" \ --secure_base_url "" \ --use_secure_admin "no" \ --skip_url_validation "yes" \ --admin_firstname "$admin_firstname" \ --admin_lastname "$admin_surname" \ --admin_email "$admin_email" \ --admin_username "$admin_user" \ --admin_password "$admin_pass" # setup svn , modman modman init mkdir .modman/modules svn co $svn_repo .modman/modules modman update-all
Comments
Post a Comment