--- layout: post title: How to install Magento on Ubuntu author: David T. Sadler description: By the end of this guide you will have installed Magento locally on Ubuntu. categories: ["Magento","Ubuntu"] robots: follow, noodp, noydir, noarchive comments: true google_plus: true twitter_share: true facebook_like: true published: false --- By the end of this guide you will have installed Magento, and some sample data, locally on Ubuntu. This will allow you to get to grips with the software before installing it onto a production server. In addition to Magento I will take you through installing Apache, PHP and MySQL. I'm going to assume that you are using Ubuntu 11.10 (Oneiric Ocelot) and that you wish to install version 1.6.2.0 of Magento. You're results may vary if you are using different versions. As this is quite a long post I have broken it down into various sections. Feel free to ignore those parts that are not relevent for you. * [Getting started.](#start) * [Installing and configuring the Apache HTTP server.](#apache) * [Installing the PHP scripting language.](#php) * [Installing the MySQL database server.](#mysql) * [Creating the directory from which Magento will be served from.](#directory) * [Configuring the Apache Virtual Host.](#vhost) * [Installing Magento.](#magento)
Magento is available in two editions, Community and Enterprise. The Enterpise edition is the company's commercial version of the software and is meant for large-scale eCommerce users. The Community edition on the other hand is available as a free download under the open source OSL 3.0 license and is the version that you will be installing. This post will walk you through every thing you need to get a local copy of Magento running on Ubuntu. It is not meant as a guide to installing a fully working eCommerce store located on a production server. To begin, open up a terminal and enter the command below. {% highlight bash %} sudo apt-get update {% endhighlight %} This will ensure that the computer's database of software packages is updated to contain the latest versions. While this command is not strictly necessary, I tend to issue it before installing any software so that the most up to date versions of the packages are used.Magento is a feature-rich eCommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their eCommerce store. Magento’s intuitive administration interface features powerful marketing, search engine optimization and catalog-management tools to give merchants the power to create sites that are tailored to their unique business needs. Designed to be completely scalable and backed by Varien's support network, Magento offers companies the ultimate eCommerce solution.