Installing a LAMP Server on Ubuntu 9.10

Karmic makes this easy with a single command:

sudo apt-get install lamp-server^

Note that the the last character is not an accident.

Now stick around since you'll have to enter a MySQL root password. Once all that's done, you'll probably also want to install PHP GD (the image library) so run:

sudo apt-get install php5-gd

Restart apache:

sudo /etc/init.d/apache2 restart

Now you should be all set up to start developing in /var/www.

Super cool bonus tip: Instead of phpMyAdmin, try Adminer along with this CSS mod (created by Brade, a Merge cohort of mine). Just put adminer.php and adminer.css in the same directory and you're golden. I like to put them in a /var/www/sql directory and rename adminer.php to index.php so pulling up http://localhost/sql in the browser fires it up.

Posted 12:19 PM | 9 Comments

Comments (Feed)

  1. it is very nice when someone puts basic commands to do only not what you need and not putting in tremedous unneeded details including how the big bang started.

    bill on
  2. Thanks, bill.

    P.S., nice domain name.

    Mike on
  3. nice info, thanks

    gadget on
  4. @gadget, no problem!

    Mike on
  5. Nice and simple, yet very useful. Well done and thank you!

    TotalWake on
  6. Thanks sir. I'll try this ...

    Jhon Wary on
  7. @Jhon Wary: if you have any problems, feel free to holler.

    Mike on
  8. Well... I'm a newbie... I have read a lot on the web and didn't understand... I finally read your couple of lines and everything work !!! Good job, sir ! Thanks from Canada ! Pierre

    Pierre Labrecque on
  9. @Pierre: Awesome, glad I could help!

    Mike on

WTF?