Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Procedure to clone Amazon EC2 instance running Magento
 
gridsmith
Jr. Member
 
Total Posts:  1
Joined:  2013-02-09
 

Below is the procedure used to clone an Amazon EC2 Linux instance (CentOS63) running Magento 1.7.02. The Magneto installation was fully configured with a few test products.
This instance of Linux/Magento was cloned so that I could use the cloned instance as my test/dev instance.

1) Gracefully shutdown the EC2 instance running Magento so that it is in a “stopped” state.
2) From the Amazon EC2 management UI “Instances” screen select the EC2 instance that was just shutdown, right-click and select “Create Image (EBS AMI)”.
3) The Image/AMI will take a few minutes to create then from the EC2 Management UI “AMI” screen select the AMI you just created and right-click then select “Launch Instance”.
4) After the new instance is started connect to the running instance with ssh or putty.
5) Edit app/etc/local.xml change the existing hostname/IP_Address to the new public IP address of the cloned instance that was just launched.
Below is the line that needs to be changed:
<host><![CDATA[New_Hostname_or_IP_ADDRESS]]></host>
6) Update the MySql core_config_table changing the field named “value” where the
“path” field = ‘web/unsecure/base_url’ or ‘web/secure/base_url’(if using https).
Below are the sql statements I used:
update core_config_data set value = ‘$New_Hostname_or_IP_ADDRESS’ where path = ‘web/unsecure/base_url’;
update core_config_data set value = ‘$New_Hostname_or_IP_ADDRESS’ where path = ‘web/secure/base_url’;
7) Delete the cache (e.g. rm var/cache/*).
8) Restart the webserver (e.g. service restart httd).

Now you should be able to access the new cloned copy of your magento instance and
access the admin page.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeffcustom
Member
 
Avatar
Total Posts:  67
Joined:  2012-11-29
Boulder, CO
 

Thanks!  This is helpful stuff…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top