Sunday, April 1, 2012

How to install Apache and PHP on linux Ubuntu?

Recently, I migrated from windows to Linux. I have used Linux even before but in my college where I used to learn MySQl. But this time I was looking for implementing web server in Linux. First I though of installing LAMP or XAMP, but as they come as package and there is nothing left after installing them once, I wanted to do little geeky thing in depth by doing few custom things. I searched in Google regarding the topic. Got number of answers. As usual, now sharing them with you guys.















Steps to install Apache & MySQL5 in Linux Ubuntu:


Step 1: Open your terminal & login as SU (Super User)


Step 2: Now type following two commands to install Apache and PHP respectively.


Command to install Apache:
sudo apt-get install apache2


Below is one related screenshot of the terminal with progress feedback:





Command to install PHP5:
sudo apt-get install php5


Here is another screenshot to get things more clear:





Once done, you can check to confirm whether everything is working or not by simply typing 'http://localhost/' in your web browser and you will see a webpage sayinbg, 'It Works'.



Thank You!

Tags: , , , ,

0 Responses to “How to install Apache and PHP on linux Ubuntu?”

Post a Comment

Subscribe

Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio. Duis mollis

© 2013 Coolpctips. All rights reserved.
Designed by SpicyTricks