Setup LAMP easily on Ubuntu

In previous tutorials, we installed php, MySQL, phpmyadmin, php-modules to setup server on Ubuntu PC. All these installation was a little tricky and all was lot of commands.
Lets make our work easy with a few commands and all is done.....

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.

About tasksel
It is a software installation application that is an integral part of the Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers the user an easy way to install the packages for that task. It provides the same functionality as using conventional meta-packages. in Maverick this command dosn`t come by default, so we need to install it first before to perform the LAMP installation.

Open terminal and Type the command :
sudo apt-get install tasksel
 Now to install LAMP, type the taskel command in terminal :
sudo  tasksel
 And select LAMP Server:

During the installation you will be asked to insert the mysql root password



Now check if php is working :
sudo gedit /var/www/info.php
 and add
<?php
phpinfo();
?>
 save and exit

Restart apache2
sudo /etc/init.d/apache2 restart
OR
sudo service apache2 restart 
 Now open browser and type :
http://localhost/info.php

To full manage your lamp Server database, install phpmyadmin

Install phpMyAdmin

To Install phpMyAdmin on server, follow this tutorial...

Share on Google Plus

0 comments: