Installing Magento on Ubuntu 9.04 Server

Last modified by godind on Thu, June 24, 2010 15:22
Source|Old Revisions  

(This is mostly a copy from Installing Magento on Slicehost with Ubuntu)

(I am not sure if this belongs in the Wiki, but it seemed like the most logical place to store it.)

I am by no means a Linux expert. This is how I got Magento working. I HAVE NOT TESTED THIS INSTALLATION THOROUGHLY, SO PLEASE BE AWARE IT IS BY NO MEANS COMPLETE.

THIS GUIDE DOES NOT COVER HOW TO CREATE A MYSQL USER ACCOUNT, MYSQL DATABASE FOR MAGENTO, MAIL SERVER, NOR SSL.

NOTE: ALTHOUGH YOU CAN RUN ALL THE FOLLOWING AS THE ROOT USER, IT IS STRONGLY ADVISED THAT YOU CREATE A NON-ROOT ACCOUNT AND RUN COMMANDS WITH SUDO.

1. If not already done, go ahead and create a LAMP Server (Linux, Apache, MySQL, PHP) by running the following command:

sudo tasksel install lamp-server 

BE PATIENT… a blue installation progress screen will appear, but it won’t look like it’s making any progress (well, this is what happened to me). Wait about 5-10 minutes, and when it’s done, the screen will disappear with the installation being complete.

2. Lets update apt-get:

sudo apt-get update
sudo apt-get upgrade

3. Now you need to install php5 curl which is used by Magento and the php command line interface used by the Magento pear installation script:

sudo apt-get install php5-curl
sudo apt-get install php5-cli

4. Now we need to edit both the php command line and the apache2 config file and increase the memory limits so the pear script and Magento can run.

/etc/php5/cli/php.ini

/etc/php5/apache2/php.ini

Set memory_limit to 64M

NOTE: I have no idea if this is the proper number but from other posts it seems good.

5. Now enable Apache2 mod_rewrite by running the following command:

cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/rewrite.load

6. In order to make Magento work correctly, this piece of configuration needs to be put at the end of /etc/apache2/apache2.conf (this is assuming that Magento is going to be installed in /var/www/magento — if not, please edit the path accordingly):

<Directory "/var/www/magento">
AllowOverride All
</Directory> 

Taken from the installation guide http://www.magentocommerce.com/knowledge-base/entry/magento-installation-guide comment #40

7. Now restart Apache for the PHP settings and the Apache settings to take affect:

sudo /etc/init.d/apache2 restart

Now you need to install Magento. Follow http://www.magentocommerce.com/wiki/groups/227/installing_magento_via_shell_ssh

Good luck!

Adapted Oct., 2009 by David G.

Related Tags:  installubuntuinstallation



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs