August 13, 2008

Ubuntu LAMP Server Installation

Recently, I decided to install a Ubuntu LAMP Server on a test server with dual processor and 4 gig of memory. The installation went well but started having problems doing the configuration of the ip address on the server. The server has four interfaces. By the fact that this is a test box and not on the network, I assigned a static I address to the interface. Using the following commands, I modified the configuration file with modified addresses:

> sudo nano /etc/network/interfaces
-> modified the interfaces with the following setting
-> network address
-> net mask
-> ip address
-> gateway

I ran into a couple of issues. The main issue had to do with the server communicating with other host on the LAN. The setup include the Ubuntu LAMP Server, one laptop, and a hub. Initially, I couldn't ping the local host address nor the laptop. The local host address could not be scanned because the configuration file (interfaces) was misconfigured.

Issue: Unable to ping local host
Solution: Configure and ensure the /etc/network/interfaces file contains the following comments:

# The loopback interface
auto lo
iface lo inet loopback

Issue: Unable to ping remote host on LAN
Solution: