« LTER All Scientist Meeting Summary | Main | Install Drupal on Ubuntu 9.04 »

September 24, 2009

Install LAMP on Ubuntu 9.04

The following are notes on how to install the LAMP package (Linux, Apache, MySQL and PhP) onto Ubuntu 9.04. The overall goal is to get Drupal installed but that is step #X.

1. Google around: "Install LAMP on Ubuntu"

This one looks like a decent step-by-step. I've become hesitant of the one-stop installer. Seems it is better to work through the process and become familiar with the individual programs:
http://www.howtoforge.com/ubuntu_lamp_for_newbies

Setup LAMP in one command. Yeah right, nothing is that easy.
http://ubuntuforums.org/showthread.php?t=186492

2. Pick a set of directions and go. Going to follow the howtoforge.com tutorial. Because I do not like taking credit for the work of others I'm only going to record my departures from the howtoforge tutorial.

3. Install Apache2 and check http://localhost/ in a browser window
- Wow, that was way too easy. It took me several hours to install Apache into Vista. Install time here was around 30 seconds! Now I just need to be sure Apache is firewalled (or whatever the Linux term is for "not allowing your computer to broadcast to the cloud."

leaf graphic


This website has information on how to block Apache from the outside world. It also tells you how to stop and restart Apache.

leaf graphic

So, assuming I've done everything correctly Apache is up and running and is working locally only!!

Here are some helpful commands for Apache:

$ sudo /usr/sbin/apache2ctl start
$ sudo /usr/sbin/apache2ctl stop
$ sudo /usr/sbin/apache2ctl restart

4. Install PHP
- Done. 1 minute 45 seconds.

leaf graphic

leaf graphic


5. Install MySQL -
"Out of Apache and PHP, MySQL is the most difficult to set up"

- Again, disturbingly easy. Although I skipped the Step 2 (optional) and Step 3, where you setup the password for root was part of the install process.

leaf graphic

leaf graphic

leaf graphic

leaf graphic

One small addition to the tutorial is enter this command (from the comments section):
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

This tells apache where phpMyAdmin is.

leaf graphic

Posted by kkwaiser at September 24, 2009 08:41 AM

Comments

Login to leave a comment. Create a new account.