Report this

What is the reason for this report?

Magento Droplet preconfigured with Sample-Data

Posted on July 22, 2015

Dear DigitalOcean Team,

we would like to have a magento installation with preconfigured sample data (http://devdocs.magento.com/guides/m1x/install/installing_install.html#install-sample), as it is provided by magento. Do you have such one click application droplets available or would it be made available in the future?

If not, what would be the best procedure from your perspective to reach that goal?

Many thanks and regards,

Falco

btw, there is no tag “Magento” available below.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi! When you create a droplet, you can select the one click Magento image. Take a look at How To Use the Magento One-Click Install Image for more info on how to use it.

To install the sample data, log in to your droplet as root and download the sample data archive:

mkdir ~/magento_sample_data
cd ~/magento_sample_data
wget http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-sample-data-1.9.0.0.tar.bz2

Then, extract it and copy the files to the magento instance:

tar xjvf magento-sample-data-1.9.0.0.tar.bz2
cd magento-sample-data-1.9.0.0
cp -r media/* /var/www/html/magento/media/
cp -r skin/* /var/www/html/magento/skin/

Finally, you’ll need to import the mysql dump that’s provided with the sample data. However, you will first need to delete the existing database as the sample data cannot be installed on an existing setup.

mysql -Bse 'drop database magento;'
mysql -Bse 'create database magento;'
mysql magento < magento_sample_data_for_1.9.0.0.sql

To clean up, simply delete the magento_sample_data directory:

rm -r ~/magento_sample_data

You can now browse to your droplet’s IP address to access the demo magento store.

This comment has been deleted

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.