Mark Allen Neil photo

Mark Allen

An online résumé, blog, biography and digital sandbox


Getting my Ubuntu LAMP server running (part 1)

Posted 2010-01-27 in Web

As covered in my last article, I was eventually able to get Ubuntu updated to 9.10 (Karmic Koala). Sadly though, I lost the applications I’d installed and more importantly the custom settings I’d generated for my LAMP (Linux, Apache2, MySQL, PHP) server. So in this article…

  • I’ll install “AMP” (as Ubuntu is the “L”) and associated utilities
  • I’ll install FileZilla so I can maintain my hosted websites
  • I’ll install phpMyAdmin to allow me to manage my databases

Installing AMP

The first step is to get AMP (Apache2, MySQL, PHP) installed on the system. A little reading revealed a handy utility intended to simplify setting up a Linux system as a server… Tasksel. You start Tasksel with the command “sudo tasksel” from a terminal window and the following selections are displayed. I picked “LAMP Server” and 21 packages were installed. I felt a bit lazy, so rather than starting Apache2 manually I simply rebooted.

Tasksel Options

To verify that Apache2 was indeed up and running, simply bring up a browser window and type “http://localhost” into the address field. The following message should be displayed.

It works!

This is the default web page for this server.
The web server software is running but no content has been added, yet.

Installing FileZilla

As I’m taking these steps, I’m documenting them in this journal article. The last section included a screenshot… in order to upload the image to my site, I recalled that I needed a FTP program. I selected “Applications->Ubuntu Software Center” and browsed the Internet section. I found and installed FileZilla… a program I’ve used successfully in the past. Fire it up… entered my host name, user name and password… and I was in. Dragged the image into the correct folder and all was well.

Installing phpMyAdmin

The next step is to install phpMyAdmin to allow me to create and administer my web databases. I imagine there are other tools out there… including using the MySQL command prompt… but I’ve had good luck with the phpMyAdmin interface. I selected “System->Administration->Synaptic Package Manager” and did a quick search for phpMyAdmin… found what I wanted. Marked the package for install and applied changes.

During installation, I was prompted for some information… whether to configure database for phpMyAdmin with dbconfig-common (yes), for the password of the database’s administrative user, for a password to access the phpMyAdmin application (twice), and finally for which web server to reconfigure (Apache2).

To start phpMyAdmin, I enter the URL “http://localhost/phpmyadmin/” into my browser address field and was presented with a login screen. I logged in as root… but the first thing I did was add myself as a separate user.

Website Credits | Symphony | Fluid 960 Grid System