OpenERP Appliance

Collaboration Works

Magento installer for ubuntu 9.04

OpenERP Appliance & All-In-One & Magento Forum

This script automates the setting up of Magento on Ubuntu 9.0.4 Server & Desktop.

New update! Magento installer

Magento ( is an Open Source ecommerce web application.

Requirements: A fresh installation of Ubuntu 9.0.4 Server or Desktop without Apache nor Mysql. Only the core of the system is needed, so during the installation of your Ubuntu Server don’t select software to install like LAMP Server in the “Software Selection” menu (except for OpenSSH Server). This script installs Apache, PHP and Mysql; and expects to deal with default config files.
TIP: test this script within a Virtual Machine after installing Ubuntu 9.04 from scratch. Run the virtual machine in a bridged network (host and guest have same subnet and can be reached from the LAN).

Run the script as non-root with the following commands:

$ gzip -d
$ chmod +x
$ ./

You will be asked for:
1) Mysql root password
2) IP address your OpenERP Web service will be listening on
3) Magento Admin username & Password
4) Your LANG, etc.

Magento Translations can be found at

Example of how to install the Spanish (Spain) translation with modern theme (Full package Download):

sudo apt-get install unzip -y
sudo cp -r app/locale/es_ES/ /var/www/magento/app/locale/
sudo cp -r app/design/frontend/default/modern/locale/es_ES/ /var/www/magento/app/design/frontend/default/default/locale/
sudo chown -R www-data.www-data /var/www/magento/app

Refresh Magento Cache from Magento Admin Panel -> System-> Cache Management

The output of the script ends with:

MySQL “root” Administrator Password: mysqlpassword
MySQL Database Name for Magento = magentodb
MySQL Database Administrator for Magento = magentodbadmin
MySQL Database Administrator’s Password for Magento = magentodbpasswd

Magento Admin Username = admin
Magento Admin Password = password
Magento Admin First Name: myfirstname
Magento Admin Last Name: mylastname
Magento Admin Email Address:

Magento default locale = en_US
Magento default timezone = America/Los_Angeles
Magento default currency = USD

Add “” to your DNS System!
Check your Magento URL with a browser:


July 27, 2009 - Posted by | eCommerce, Scripting, Turnkey, Ubuntu Server Canonical |


  1. Thank you, thank you, thank you! I have been fiddling for hours trying to get a simple Magento test server set up. I did a clean install of Ubuntu 9.04 Desktop, ran the script, and voila! Everything seems to be working great.

    This is exactly the sort of thing that Linux needs: a simple script for beginners, while still allowing modification by experts. Great job.

    Comment by musicman3569 | August 26, 2009

  2. I have one question, should I simply install all the defaults? (Such as the address is asks for is instead of, is this correct or am I missing something)

    thanks for your work

    Comment by Will Stone | August 29, 2009

    • Ubuntu comes with two default records in /etc/hosts: localhost yourhostname

      This is why was included in the script as default IP addr that maps to your hostname and DNS Name of Magento (when no other IP address is given by the user). is fine to test Magento locally, but a real IP addr is recommended in a network env.

      Network settings of your Ubuntu sytem should be configured first.

      Comment by I. Fernández | August 29, 2009

  3. You are my new personal hero 🙂

    Every producer of CMS, E-Commerce etc. etc. should go this way with an installer script.

    Comment by Dennis Johansen | October 18, 2009

  4. Thank you for the script.

    Now my question!

    “You will be asked for:

    2) IP address your OpenERP Web service will be listening on”

    I try this script on a virtual ubuntu 9.04 (vmware) but this script didn t ask me for 2) OpenERP …

    How can I connect Magento with OpenERP with your Script?

    Comment by Olaf Vocks | November 3, 2009

    • Hi Olaf,

      I’m gonna check and update this script as it’s now out of date (latest Magento release is v1.3.2.4). Will test the new openerp-magento connector in the following days and hopefully be able to create a video-tutorial.


      Comment by opensourceconsultant | November 4, 2009

      • I am not shure why, but in my installation Magento seem to update automaticaly to v1.3.2.4 !!!

        Thank you!

        Comment by Olaf Vocks | November 4, 2009

        • Wow! I don’t understand how this is possible, but that’s good news!!!

          Thanks for your feedback!

          Comment by opensourceconsultant | November 4, 2009

  5. Thank you for sharing above script with us.

    Comment by Magento Developer | November 4, 2009

    • You’re welcome. I like sharing the knowledge. Please mind the latest release is v1.3.2.4.

      Comment by opensourceconsultant | November 4, 2009

  6. […] : Magento installer for Ubuntu 9.04 & Ubuntu 9.10. The Magento extension for multiwebsite OpenERP connector has to be added by its Web Admin Tool. More info here. […]

    Pingback by Magento-OpenERP integration on Ubuntu « Open Source Consulting | November 6, 2009

  7. help me

    o Path “/var/www/magento/app/etc” must be writable
    o Path “/var/www/magento/var” must be writable
    o Path “/var/www/magento/media” must be writable

    local installation

    Comment by luigi | November 18, 2009

  8. I’m unable to access my Webmin panel after installing the script. Any ideas why?

    Comment by Mark Kraft | December 15, 2009

    • Probably because this script considers no more web applications run on the same ubuntu host. Proceed with a fresh install of ubuntu if you don’t want to deal with Apache’s config files.

      Comment by opensourceconsultant | January 18, 2010

  9. Hi, I ran this script, but the links do not work after installation and also realized that my samba and my FTP stopped working, someone can tell me why?

    Comment by Guilherme | December 28, 2009

    • First of all, it is recommended to run this installer on a fresh ubuntu 8.04 server or desktop. Secondly, this script blocks most of the ports by default (like those used by samba and FTP).

      Comment by opensourceconsultant | January 18, 2010

  10. Your blog is a great source of information for magento developers and for people who wants to learn magento.

    Magento Developer

    Comment by Magento Developer | January 20, 2010

    • Thanks for your kindness. Good to hear that from a Magento expert!

      Comment by opensourceconsultant | January 21, 2010

  11. Hi
    tried this script out after many hours of reading and searching about magento, linux and ubuntu

    The few problems in the installation are

    Starting to download Mage_Core_Modules- (1,773,350 bytes)
    …done: 1,471,328 bytes

    Starting to download Lib_ZF_Locale- (1,522,612 bytes)
    …done: 750,105 bytes

    Installing Magento…

    ERROR: Illegal scheme supplied, only alphanumeric characters are permitted

    Im running under WinXp 64 Pro
    Wmware with Ubuntu 9.10 latest update + Vmware tools

    If I start localhost/magento I will get magentoinstall to work but it would be nicer with a clean install without errors of course.
    Any ideas out there ?

    best regards
    from Sweden.

    Comment by Jörgen | June 1, 2010

    • Hi, thanks a lot for this tutorial, everything goes perfect except when I have to enter mysql username , password and DB name it crashes with the following message:

      There has been an error processing your request

      Exception printing is disabled by default for security reasons.

      Error log record number: 530609370573

      I am unable to find this error log, am new to linux, can somebody please help.

      I am running Ubuntu 10.04 server(LAMP).

      Thanks in advance

      Comment by Amy | June 2, 2010

  12. Hi guys problem solved, basically I was entered a different user with all privileges and no password and it worked 🙂


    Comment by Amy | June 2, 2010

  13. Problem Solved guys
    I entered a new user with all privileges and no password and it worked, earlier i was entering root user.

    Cheers 🙂

    Comment by Amy | June 2, 2010

Sorry, the comment form is closed at this time.

%d bloggers like this: