How to setup a LAMP server with less than 100 characters

One of the reasons cause I love the GNU/Linux for developing is its easy and quick setup.

So if you’re a LAMP-dev you can setup a LAMP server with less than 100 chars.
With the next command you will have a apache2+php5+mysql on Debian based systems with the bonus of phpmyadmin for administer your databases.

sudo apt-get install phpmyadmin lamp-server^

Dont forget the trailing ‘^’ char.

Quick post, quick solution. Isn’t it?

  • But if you are a power PHP user you must execute the next:

    sudo aptitude install libapache2-mod-auth-mysql php5-memcache php5-imagick php5-mysqli php5-xmlrpc php5-adodb php5-cli php5-enchant php5-geoip php-ldap php5-mhash php5-sqlite3 php5-svn php5-xsl php5-tidy php-apc php5-curl

    But this depends on the modules you will use for your apps.

    Enjoy!

  • Andreas Becker

    Great post, thank you!