Saturday, June 26, 2010

Installing Apache Mysql and PHP on Ubuntu

Installing

Apache :
Enter this command in terminal (application --- accessories-- terminal or ctl+alt+t)

$ sudo apt-get install apache2



once you done open the browser and type http://localhost you will get message like it works.


PHP:

sudo apt-get install php5 libapache2-mod-php5



Mysql:

sudo apt-get install mysql-server

This are the 3 simple steps to install LAMP (Linux,Apache,Mysql, PHP)
Once you done with it open terminal and set some password to your Mysql

by typing this command. open terminal

Once you done with these steps if you to check whether PHP is work or not
type http://localhost in your browser. you will get It works Message

for Mysql type

mysql -u root -p in the terminal then it asks for your password
enter your password. that its


for more details please go through this link http://www.howtoforge.com/ubuntu_lamp_for_newbies

No comments: