Pages

Thursday

LAMP Installation with one command in Ubuntu

           LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.If you carefully follow these step by step instructions, you'll have your own LAMP setup running in no time.

Install LAMP in Ubuntu:
              The Ubuntu developers have made it easy to install the LAMP server packages with a single command. Simply open a terminal window and enter the following.

                                sudo apt-get install lamp-server^

               Please make sure to include the caret (^). The command will not work without it.

You will then be prompted to change the password for the root user on the MySQL database.Enter the password you want.Retype the password to confirm.
setting password for mysql
After you confirm your password, apt will continue to install the rest of the packages.
Congratulations, your LAMP installation is now complete!.
                   Now we are gonna check whether apache,php and mysql are working without any error .


Test Apache :

         Open a web browser and enter the address http://localhost/. You should see a web page that says "It Works!"

Apache works

Test php :

           Now that you know Apache works, you'll want to test the php installation. You'll need to create a file in /var/www called testing.php. Open a terminal and enter:
             
                                sudo gedit /var/www/testing.php

    Enter the following line into the text editor, save the file and exit.
                            <?php phpinfo(); ?>
        
    Next, restart Apache with the following terminal command:
                           
                               sudo /etc/init.d/apache2 restart
      
    Now open browser and type  : http://localhost/testing.php 

Php works
    To manage your LAMP server database ,its better to install phpmyadmin 
  
                              sudo apt-get install phpmyadmin 
                                                     (or)
   Install it from software center.Now,type localhost/phpmyadmin in browser
   
Facebook Blogger Plugin by Pradeesh | Techie Touch
Related Posts Plugin for WordPress, Blogger...