Magento Installer For Ubuntu 9.04

November 8, 2010 by: jennyamy


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:

$ 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.

Content of script

stty erase '^?'

echo -n "Do you want to update your Ubuntu packages? (Y/n): "
read upgrade
if [ -z "$upgrade" ]

for lang in `apt-cache pkgnames language-pack-gnome- | grep -i base`
array=( "${array[@]}" "$lang" )

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Have you found this script useful? Please support author by PayPal donation.

Leave a Reply