Installing LAMP Server on Ubuntu 10.04

Open up the Terminal and execute this commands as ordered,
This command is used to install the LAMP Server.
sudo apt-get install lamp-server^
Enter the MySql password and enter it again.
Configure the Apache2 has the default server.
and say no to auto configuration of MySql.
open up a web browser and enter this address http://localhost/
For Open up an editor
sudo nano /var/www/testing.php
Copy and paste this code,
<?php phpinfo(); ?>
Restart Apache2 Server,
sudo /etc/init.d/apache2 restart
open up a web browser and enter this address http://localhost/testing.php
Check the local host IP,
cat /etc/hosts | grep localhost
cat /etc/mysql/my.cnf | grep bind-address
Install the PHPMyadmin
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
open up a web browser and enter this address http://localhost/phpmyadmin
Its all done! Enjoy using LAMP.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: