By falco
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.