Free Magento AMI on AWS

16/01/2011

Our good friends at GreenGecko maintain an up to date version of a free Magento AMI (Amazon Machine Image) on AWS (Amazon Web Services). It is a set up of a Linux server providing a LAMP stack to drive a bare-bones Magento instance with a bundle of admin and support applications.

Basic server management is performed using the Webmin package. This allows you to perform all the usual sys admin procedures in a standard manner from any browser-enabled client.

Current AMI

The latest details on the AMI and up to date installation instructions can be found on GreenGecko website. They maintain the latest version in US-East zone, but can copy it to other zones on request.

Other versions can be found by owner ID: 859714128294

Installation

After ensuring that http traffic is able to traverse the Amazon firewall, launch the AMI in your preferred zone – this image is ok for micro, small and medium instance types, although the lack of power of the micro instance may well prove frustrating or all but small test setups. All login and access details will display on the home page of the site after launch. Copy the details, disable the page and change all the passwords immediately to avoid hacking of your new server. That’s it! You’re now up and running your own Magento server.

To allow for ftp and admin access to the server, it is necessary to open ports 50000 to 51000 ( for passive ftp ), and 10000 ( for webmin ) in the firewall.

To enable the mail server, you will need to perform some more configuration, which is covered later.

IP address change

If you change the IP address of the server – for example by assigning an Elastic IP address, you will need to reboot the server. This is because both Magento and the ftp server need to be reconfigured to use the new address, and scripts to check and update are configured to run on every reboot of the server. NOTE! If you then assign your own hostname to this server, the database must be modified and this script disabled. More on this later.

Domain name change

You need to reboot the instance if the domain name changed. Magento is updated with the current domain name as part of the reboot.

Maintenance and support

For ZetaPrints customers

We offer paid premium support to our existing and prospective customers using or considering to use our web-to-print and dynamic imaging technology.

For all others

The instance is maintained by good guys from GreenGecko. Contact them directly for your maintenance and support requirements.

Issue reporting

Bugs or feedback can be reported directly to our development team.

Web-to-print extension

Our web-to-print extension is NOT included in the AMI. The Magento installation comes as a default community edition set up. Follow our web-to-print installation guide.

AMI details

Installed Software

  • Operating System: Ubuntu Linux
  • Apache
  • Mysql
  • PHP, Zend, Suhosin
  • Magento
  • Sendmail
  • Dovecot
  • Clamav
  • Proftpd
  • Webmin

Default Accounts

  • Magento: magento/magento1 ( http://[hostname]/admin )
  • Webmin: webmin/webmin1 ( https://[hostname]:10000 )
  • Mysql: root/magento1
  • ftp: magento/magento1 ( ftp://[hostname] )

webmin can be used to change the webmin and magento ftp account passwords, and the magento application itself to change the backend password.

Manual configuration required to enable extra functionality

ftp

To ensure passive ftp works correctly, please ensure that ports 50000 to 51000 are open in the Amazon firewall. Note: Passive ftp is the default option for products such as filezilla.

mail

Sending out emails works out of the box. Call in a system administrator to configure incoming emails or consider a hosted email service from a different provider.

AWS places limits on outgoing emails. Fill in email limit increase form to have the limit removed.

The IP address you are using is likely to be blacklisted by major spam database providers.

Remote access (SSH)

SSH works as in a default Ubuntu install. To access your instance, use:

ssh -i [identity file of Amazon account this instance was started under] ubuntu@[hostname]
replacing the text in []‘s with the relevant text from your install. Once logged in , this account has full sudo rights.

See also: