I was very excited to install magento on Ubuntu instance after launching Ubuntu instance on Amazon. It is so simple to install,
There are four steps involved in installing the Magento Ecommerce on Amazon Ubuntu instance.
See Also : Our Magento Extensions and Theme Store
Launch Amazon EC2 Ubuntu instance.
Connect Amazon Ubuntu instance using SSH client Putty.
o It will take few seconds to install. Then give a password of your choice and remember it. It will be useful later on.
Install Apache2 by using below given command,
Command: sudo apt-get install apache2 Install following packages also, apache2-doc, apache2-mpm-prefork, apache2-utils, libexpat1,ssl-cert.
Install php5 by using this command,
Command: sudo apt-get install php5 Install following packages also, libapache2-mod-php5, php5, php5-common, php5-curl, php5-dev, php5-gd, php5-idn,php-pear, php5-imagick , php5-mcrypt, php5-mysql, php5-ps, php5-pspell, php5-recode, php5-xsl.
Install phpmyadmin by using this command.
Command: sudo apt-get install phpmyadmin
After selecting you will be asked if you want to configure with database. Select yes and provide the database password which you have given during Mysql installation.
[Note: You have to enter the password three times]
After installing the LAMP stack we have to install the Magento installation file in the
/var/www is the root directory for your magento website. Magento has to be installed
inside www directory.
www folder contains the index.html file, which will be there by default.
To download Magento to your Ubuntu instance type the following command, Command: sudo wget http://www.magentocommerce.com/getmagento/22.214.171.124/magento-126.96.36.199.tar.gz Note: While using this command make sure you are on /var/www folder
Once Magento gets installed Go to # cd /var/www and type Command: sudo rm index.html [It will remove the index.html file from the www folder]
The installed Magento file will be in .tar format, Inorder to extract it , type following command, Command: sudo tar -zxvf magento-188.8.131.52.tar.gz
Now change the permission ofmagento to write on your file system using, Command: sudo chown www-data:www-data -R magento-184.108.40.206
Now point your browser with the public DNS name of your Ubuntu instance [Eg: ec2-xx-xx-xx-xxx.compute-1.amazonaws.com].You can see the magentofiles.
Click magento-220.127.116.11 and continue the installation process.During the process it will ask for database name, user name and password. Now open a new tab and type your ec2 public DNS name followed by phpmyadmin eg: http://ec2-xx-xx-xxx-xx.compute-1.amazonaws.com/phpmyadmin/. You will have to provide the user name as root and password is one which you used during the Mysql installation. Once you enter the credentials click login.
Now Go to--> Privileges-->Add new user Enter the user name,password of your own. Give the host name as localhost. and under database user click the second option and click create user.
Now go back to the tab where we left and enter the database name, database username, database password and click save and continue.
In order to point to the public DNS of your magento, you have to put all the magento files in one folder and put it inside the www folder. Go to putty and type the following codes. Command: sudo mv magento-18.104.22.168 magento
Restart apache by using this command, Command: sudo cd /etc/init.d/apache2 restart You are done!! You can now manage your Magento using your public DNS of Ubuntu instance. Ask us for any help if you need while installing Magento on Ubuntu instance, Post comments if you face any problem during installation, we will happy to assist you.
Receive The Latest Posts Directly To Your Email - It's Free!!