05 August 2015

How to install magento 1.8 in Ubuntu

Follow the step below:

1.    Download Packages (installation, sample-data) and Extract
2.    Create database and import sample data magento_sample_data_for_1.6.1.0.sql
3.    open your virtual host http://local.magento
4.    Install sudo apt-get install php5-mcrypt
5.    sudo apt-get install php5-mcrypt
       sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/
       sudo service apache2 restart
       sudo a2ensite php5
6.    copy images of sample data to /media/catalog
7.    you are done!

Linux Basic command line

Linux Commands

  • Permission and ownership
- r is for read permission = 4
- w is for write permission = 2
- x is for execute permission = 1

- u is for user
- g is for group
- and o is for others
chmod -R 755 directory-name
chmod u+x filename

chmod Examples
Give read, write and execute to everybody (user, group, and others)
read, write and execute = 4 + 2 + 1 = 7.

Basic Command Prompt

Here are useful command in window:
  • list file or directory
  •  change directory or dirve
C:\>cd Newfolder
  • create or delete file and copy file
C:\>copy NUL EmptyFile.txt
C:\>del EmptyFile.txt
C:\>copy test1.txt test2.xt

Create Hello World in Java

Here is simple java basic:

Create HelloWorld.java with code

public class HelloWorld {

     * @param args
    public static void main(String[] args) {
        System.out.println("Hello world");


How to to install composer in Ubuntu Linux

How to to install composer in Ubuntu Linux
Install composer in Ubuntu 10.4

curl -sS https://getcomposer.org/installer | php

mv composer.phar /usr/local/bin/composer

Run composer set timeout

COMPOSER_PROCESS_TIMEOUT=4000 composer update


COMPOSER_PROCESS_TIMEOUT=4000 php composer.phar update