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]

4 Comments

  1. Nick Cave
    Posted 31 October 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 31 October 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.

  3. Posted 30 January 2009 at 5:49 pm | Permalink

    For idiots like me:

    1) sudo apt-get install phpmyadmin mysqlserver
    [just phpmyadmin here ran into the mysql socket issue]
    2) sudo ln -s /usr/share/phpmyadmin /var/www/.

    mparis@XPSM1330-mparis { /var/www }$ ls -al
    total 12
    drwxr-xr-x 2 root root 4096 2009-01-30 11:38 .
    drwxr-xr-x 16 root root 4096 2009-01-30 11:25 ..
    -rw-r–r– 1 root root 45 2009-01-30 11:25 index.html
    lrwxrwxrwx 1 root root 22 2009-01-30 11:38 phpmyadmin -> /usr/share/phpmyadmin/

    John: many thanks.

  4. Posted 30 January 2009 at 9:21 pm | Permalink

    Absolutely brilliant. Now if only there was a one-liner for Eclipse with CDT and PDT…

One Trackback

  1. By Install LAMP on Ubuntu « Human Language Weblog on 11 January 2009 at 6:54 am

    […] Install LAMP with one command: http://www.whiteoctober.co.uk/blog/2008/10/14/ubuntu-howto-install-lamp-with-one-command/ […]

Post a Comment

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

Ready to talk?

Whether you want to create a new digital product or make an existing one even better, we'd love to talk it through.

Get in touch