Magento Commerce

Magento Commerce Installer Updated

If you’re looking for an updated version of my old Magento install script for DreamHost, you’re in luck – I went ahead and updated it so it is now installing version 1.4.0.1 of Magento Commerce.

http://www.gimmesoda.com/installing-magento-commerce-on-dreamhost/

JJ G

Installing Magento Commerce on DreamHost – Updated for 1.4.1.0

*Updating Again*

Now updated for Magento 1.4.1.0

*Another Update*

I’ve gotten a few requests to get this updated for the new version of Magento. This is now done – the same instructions apply with slightly different download locations for the new version of Magento.

*One quick update*

Thanks to Ashley for mentioning that I didn’t add the prefix option as an argument. Added it to the script and updated the content below to show how to use it.

-JJ

There has apparently been quite a few people having trouble with the Magento install on DreamHost. I was among them, so I took the advice of fellow co-workers and used the command line method for installation. It worked, but I figured it could be easier so I threw together a bash script for that purpose. You can grab a copy from the following url and save it to the folder you want magento installed in.

http://www.gimmesoda.com/install_magento.sh

You can also run these commands from the folder you will be installing it to.

wget http://www.gimmesoda.com/install_magento.sh;
wget http://www.magentocommerce.com/downloads/assets/1.4.1.0/magento-1.4.1.0.tar.gz;
chmod +x install_magento.sh;

To make it easier you don’t need to hard code any of your variables, rather you just enter them through arguments for the script:

./install_magento.sh
In order to install Magento all the following are required.
-h: MySQL Database Hostname
-d: MySQL Database Name
-u: MySQL Database User
-p: MySQL Database Password
-x: Database Prefix
-a: Magento Shop Address (Example: http://shop.example.com/)
-f: Magento Admin First Name
-l: Magento Admin Last Name
-e: Magento Admin Email Address
-r: Magento Admin Login
-s: Magento Admin Pass (Must have letters and numbers.)

Which ends up looking like this:

./install_magento.sh -h mysql.example.com -d database -u dbuser -p dbpass -x prefix -a http://store.example.com/ -f First -l Last -e admin@example.com -r admin -s adminpass1

If everything worked as expected (running this on DreamHost it should) you’ll be prompted with something similar to this:

SUCCESS: 88dd17d566d65128b6bb9357773d269b

Which is the Magento encryption key and is rather important, so the keep a copy of that key. I’ll be adding a cleanup argument to this script which will remove all files from the install directory, which is useful in the case of errors. If you have any questions just let me know!

-h mysql.example.com -d database -u dbuser -p dbpass -a http://store.example.com/ -f First -l Last -e admin@example.com -r admin -s adminpass1