Install Magento on Ubuntu Server


Why are there lots of guides with strange and mystical commands about installing Magento? It’s so easy!

I’m joking, but I want to reassume the guide you can find at its wiki.

Perform a clean install of Ubuntu Server (I suggest >= 10.04) then type (mark your MySql password!) :

sudo tasksel install lamp-server openssh-server
sudo apt-get install php5-curl php5-cli php5-gd php5-mcrypt

Now you can continue with a ssh connection.

For avoid a future security issue, edit this Apache configuration file:

sudo vi /etc/apache2/sites-enabled/000-default

and change all occurrences of:
AllowOverride None
with
AllowOverride All

Create the database and its new proprietary user (replace “magentoadmin” and “password” as you like) :

mysql -u root -p
CREATE DATABASE magento;
GRANT ALL PRIVILEGES ON magento.* TO 'magentoadmin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

Delete default index.html, download Magento, unpack and set permissions.
Here are commands, but I suggest to visit the official download page for updates (Full Release).

cd /var/www
sudo rm /var/www/index.html
sudo wget http://www.magentocommerce.com/downloads/assets/1.5.1.0/magento-1.5.1.0.tar.gz
sudo tar -zxvf magento-1.5.1.0.tar.gz
sudo chown -R www-data.www-data *
sudo mv magento/* magento/.htaccess .
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
sudo chmod o+w var var/.htaccess app/etc
sudo chmod 550 mage
sudo chmod -R o+w media var
sudo rm -rf magento/ magento-1.5.1.0.tar.gz
sudo service apache2 restart

Open your browser pointing the ip address of your server and finish the installation.

Any feedback will be appreciated…

2 thoughts on “Install Magento on Ubuntu Server

  1. Exactly. Why do some manuals spend so much letters on an installation guide for dummies? This is exactly what I needed. Thanks for the great and minimalistic effort!

  2. Amazing blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple adjustements would really
    make my blog stand out. Please let me know where you got your
    design. Thank you

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s