Install LAMP with PHPMyAdmin on Ubuntu using 1 command

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.

To install the LAMP stack with PHPMyAdmin on Ubuntu, fire up your terminal and type the following command:

sudo apt-get install lamp-server^ phpmyadmin

If you’re curious, the caret (^) in the command means that it’s a Taskel task. This link has a fairly good explanation of Taskel.

To access PHPMyAdmin, open terminal & type:

sudo gedit /etc/apache2/apache2.conf

Add this line somewhere in that file:

Include /etc/phpmyadmin/apache.conf 

Finally restart Apache using:

/etc/init.d/apache2 restart

or

sudo service apache2 restart

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>