1. Open a terminal box in Ubuntu.
2. Edit /etc/apt/sources.list

Comment out the following two lines. (Add a “#” to the front)

# deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
# deb http://security.ubuntu.com/ubuntu dapper-security universe

3. Run command

sudo apt-get update

4.Run the following commands:

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart

5. Apache installed in var/www folder.

Categories: Ubuntu

2 Comments

Vishal · November 15, 2011 at 11:45 am

Hi if i want to install all things like PHP,Mysql as in Windows System then it is just for php then what for Mysql? and can you please demonstrate how can we use mysql connection in ubantu?same as we use in xamp like mysql_connect(“localhost”,”username”,”password”)

Install SVN client in UBUNTU 12.04 - Anil Labs · March 11, 2013 at 10:24 am

[…] friends, We have discussed few posts about Ubuntu in earlier like how to install php , google chrome and Curl. Recent days I am again working with UBUNTU system ( 12.04 ). In my new […]

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *