Thursday 6 October 2011

INSTALLING APACHE SERVER AND PHP IN UBUNTU



Hello friends I will be explaining how to install Apache server and Php in Ubuntu in simple way. We will be using the LAMP stack for the installation using the command line. You need not be worried it’s not as it seems and your development server should be working within minutes.
We will look into it in a step by step manner and also provide certain screen shots to help. The first requirement is a working version of Ubuntu Linux (and I assume u already have Ubuntu installed).Now we will go through the procedure.
1)      Open Terminal

2)      Type sudo apt-get install apache2 mysql-server php5 phpmyadmin





3)      Accept all the prompt and type yes to continue



4)      Enter Password when prompted

5)      Go to http://localhost/ to see if Apache is working, If yes you will see a page saying “It works ” goto step 7
Or
If you see the page saying  
waiting apache2: Could not reliably determine the server's fully qualified domain name,
 using  127.0.1.1 for Server Name” Goto Step 6
 
6)      Here you have to edit the httpd.conf file 
 

 
 
Type               sudo gedit /etc/apache2/httpd.conf
 
Then Add the following line to the file (which will be blank be default): 
ServerName localhost
 
7)      Then go to http://localhost/phpmyadmin in your browser. 
 
a) If you don't see phpMyAdmin's welcome page, 
 
run 
 
                  sudo ln -s /etc/phpmyadmin/apache.conf/etc/apache2/conf.d/phpmyadmin.conf
 
b) The next step is to reload Apache: type the following to do the same
 
                                             sudo service apache2 reload 
 
c) The phpMyAdmin's Welcome page will be visible now.
 
8)      Enjoy your fully working server!!
  



PS: The day I am posting the tutorial The world lost a true visionary and great man .A true inspiration for all the techies and people who love technology.The APPLE keynotes, those product unveiling will never be same again without you.
Rest In Peace Steve Jobs. RESPECT.


HAQ6R3RCXCGN

2 Responses to “INSTALLING APACHE SERVER AND PHP IN UBUNTU”

Unknown said...
10 October 2011 at 10:22

ok, I am having trouble installing ruby on rails and postgresql on ubuntu 11.04 ... so can u write something on that topic???


Chetan said...
10 October 2011 at 15:16

Thank you Miki for the feedback, we will surely come up with the article very soon.
Do join our facebook page for information on updated articles and dont forget to subscribe us.
https://www.facebook.com/Its.Not.Geek.Only


Post a Comment