03.22
From last few months i have been using Ubuntu OS for development. As a PHP Developer it is necessary that we should work on LAMP environment. So firstly we installed Ubuntu. Now after that we have started Apache, MySQL and PHP also. In this section i will write up how to install Apache first. If you follow this steps you will be easily able to install Apache2 on your machine.
Lets start with Apache installation:
1. Open the terminal from Applications > Accessories > Terminal
2. Install apache2 using apt-get by typing the following
sudo apt-get install apache2
It will prompt you password. Provide your password. After that everything will be downloaded and installed automatically.
To start/stop apache2 write:
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
After installation you will find your www folder should be in: /var/www/
If everything is OK you should see an simple HTML page when you type: http://localhost in your browser or create normal HTML page and place in /var/www/ folder.
Next Tutorial will be of Installing PHP in Ubuntu / Linux.