Ubuntu howto: Install LAMP with one command

I use Ubuntu in the office and at home as my desktop, and now so does Val on his new laptop.

He needed to setup a full LAMP stack to develop on and asked me what packages does he all need to “apt-get” to make sure it all works.

Easy I said…one package which will install everything for you.

apt-get install phpmyadmin

Update:
You may have to do this if your phpmyadmin link (http://localhost/phpmyadmin) says it can’t connect to a mysql socket.

apt-get install phpmyadmin mysql-server

Roll on Ubuntu Intrepid Ibex 8.10.

Reblog this post [with Zemanta]

2 Comments

  1. Nick Cave
    Posted October 31, 2008 at 12:21 am | Permalink

    When I run sudo apt-get install phpmyadmin on a fresh install I get:

    The following packages have unmet dependencies:
    phpmyadmin: Depends: libapache2-mod-php5 but it is not installable or
    libapache-mod-php5 but it is not installable or
    php5-cgi but it is not installable or
    php5 but it is not installable or
    libapache2-mod-php4 but it is not installable or
    libapache-mod-php4 but it is not installable or
    php4 but it is not installable or
    php4-cgi but it is not installable
    Depends: php5-mysql but it is not installable or
    php5-mysqli but it is not installable or
    php4-mysql but it is not installable
    Depends: php5-mcrypt but it is not going to be installed or
    php4-mcrypt but it is not installable
    Recommends: apache2 or
    lighttpd but it is not going to be installed or
    httpd
    Recommends: php5-gd but it is not installable or
    php4-gd but it is not installable
    E: Broken packages

  2. Posted October 31, 2008 at 10:18 am | Permalink

    I’ve just installed 5 fresh installs of Ubuntu using this command. Version 8.10 and JEOS 8.04.

    On some systems you may have to install mysql-server, my home machine didn’t need it which was odd.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*