Tuesday, June 2, 2009

Installing AMP on Ubuntu (making a localhost)

Well, that was easy. Yet another one-step installation, yay!
In short,
 sudo tasksel install lamp-server
does the trick.

===

Installing LAMP (well, actually AMP) locally instead of accessing remote servers online helps with testing joomla/CMS installations, editing templates, not screwing up a live website, etc. The last time I tried to do this I got bogged down by all the articles that explained how to "install Ubuntu Server Edition," when what I really wanted to know was how to install AMP on top of the desktop version of Ubuntu. Also, the Ubuntu community documentation pages (that I turned to for help on wifi) were long and out-of-date on the subject of ApacheMySQLPHP.

Of course one option is installing the packages individually, but it turns out there's an easier way: Tasksel.

I typed in (at a terminal):
 user@user-desktop:~$ sudo tasksel install lamp-server

It immediately started downloading packages, prompted for a MySQL password, and the whole process was over in less than ten minutes.

To check that AMP installed properly, I entered "localhost" in my browser and voila, I was greeted with
It works! Kehe. That made me smile.

Footnotes

System used: Ubuntu 9.04.

For a bit more info, see Ubuntu Forums - View Single Post - HOWTO: Setup easy web development environment (XAMPP)