Category: How to..., Linux Projects - Hands On — UbuntuLinuxHelp @ 2:03 pm —

Ubuntu 8.04 LTS Server Edition (64-bit) The last post I covered the hardware installation for this project. For this section, we’re going to use Ubuntu Linux (8.04 LTS Server Edition 64-bit) to install the LAMP (Linux, Apache, MySQL, PHP) server. If you don’t have that software available, you can get it using the following venues:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

1. Download the iso image from: http://www.ubuntu.com/getubuntu/download and burn it to a CD.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

2. Order the CD from https://shipit.ubuntu.com/login-server.

Once you have a copy, make sure the BIOS on the PC is set to boot off the CD drive. Put the CD in the drive and simply restart the unit. It should now boot off the CD and display the “select language” screen as seen below.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Select Language - Ubuntu Server 8.04 installspacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

After you’ve selected the language, you’ll be presented with the installation menu. Simply select “Install Ubuntu Server”, as seen below.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Installation menuspacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Remember that this is a server, ideally we’d like to have a static IP address for this server. There is a selectable boot option called “F6 - Other Options” where you could enter the following command to disable DHCP:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

netcfg/disable_dhcp=truespacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

At which point you will be required to manually configure the network settings. I am going to include that information below. However, for some reason I was not able to set up the network card after the installation (I could not see it) , so I used this work around instead…spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

I logged into the router and checked the logs so that I could get the MAC address of the network card. I then configured a DHCP reservation in the LAN/DHCP setting of the router so that the MAC address of the network card would always get the same IP address. Because I did not want to install a DNS server (my ISP made me take the DNS server down last time I set it up), I then, simply added the IP to hostname record, into the host file of each unit I wanted to connect to the web server.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

During the installation (just follow the prompts it gives you), you will need to provide the following (among other obvious questions/answers):spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

  1. A hostname for your web server (the hostname is independent of whatever domain name you’re going to use. For example, the hostname of this server is “webbox” and the domain I’ll use to access the web server on it is “local.ubuntulinuxhelp.com”).
  2. I selected to use the “Guided - use entire disk” when prompted for the partitioning.
  3. A username and password that you are going to remember.

You’ll eventually come to a prompt for the type of server (Software Selection), select LAMP, like the image below.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Ubuntu server install software selectionspacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

I chose to install the other components later, because I found out it will reduce some of the tweaking and updating later. During the software installation, you will be asked for a MySQL password. Write it down or don’t forget it! (You’ll need it later to use phpMyAdmin). The remainder is very straight forward, but as I mentioned earlier, here’s the static network configuration information. Remember, your network configuration addresses will probably be different from mine.
spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin
Because there is no GUI yet, we’ll be using the command line to configure the network.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Login after rebooting.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

You can use a simple text editor like nano, vi, etc.spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

sudo nano /etc/network/interfacesspacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

For those who left DHCP enabled, look for this:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

auto eth0
iface eth0 inet dhcp

spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

and change it to this:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

auto eth0
iface eth0 inet static

spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Under the line that says “iface eth0 inet static”, you’ll enter your network information. An example of mine is:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

address 72.138.51.130
netmask 255.255.255.0
network 72.138.51.0
broadcast 72.138.51.255
gateway 72.138.50.1

spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

So the file would look something like this:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

auto eth0
iface eth0 inet static
address 72.138.51.130
netmask 255.255.255.0
network 72.138.51.0
broadcast 72.138.51.255
gateway 72.138.50.1

spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

Additionally, I made sure the host file contained the following information:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

127.0.0.1 localhost webbox
172.138.51.130 local.ubuntulinuxhelp.com webbox

spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

After configuring the network interface, restart the network using the following command:spacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

sudo /etc/init.d/networking restartspacer_gif Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI - LAMP installation with cgi-bin

The basic LAMP installation should be complete. :)

There are 2 comment(s) added so far...

#1

[…] 2. LAMP installation with cgi-bin. […]

#2

[…] the last installment, I covered what was done to install LAMP on the server. But remember that we did not install SSH. Why is SSH important? It allows us to […]

You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.