Wednesday, 6 April 2011

LAMP

LAMP Installation on ubuntu !

Following are short steps to get the LAMP(Linux,Apache,MySQL,PHP) server installed over ubuntu machine :

L A M P - I N S T A L L A T I O N
-----------------------------------------------------
Go to cli and type:
$ sudo apt-get install lamp-server^
enter the password for the root user on the MySQL database [e.g. admin]

Now,test apache by typing http://localhost/.A page saying "It Works..." should be seen.
Now on cli,type
$ sudo gedit /var/www/testing.php
and in the file type <?php phpinfo(); ?> .
Save the page and restart apache service by
$ /etc/init.d/apache2 restart

Then check the php service by appending the already opened localhost page by"testing.php" and hit enter.The phpinfo() function will show up some statistics.

Install PHP-MyAdmin:Now,in cli type this:
$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
then select apache2....then "y"... then enter the password of MySQL which u entered earlier...then enter MySQL application password for for phpmyadmin [e.g.adminphp].

Now on the already opened page append the local host with "phpmyadmin".
Enter usernam/password as root/admin ! Done Alhamdulillah ...! :]

No comments:

Post a Comment