Archive for September, 2007

Installing an Ubuntu 6.06LTS LAMP Server

ubuntu-logoAutomatic LAMP (Linux, Apache, MySQL and PHP) In about 15 minutes, the time it takes to install Ubuntu Server Edition, you can have a LAMP server up and ready to go. This feature, exclusive to Ubuntu Server Edition, is available at the time of installation.

The LAMP option saves the trouble of installing and integrating each of the four separate LAMP components, a process which can take hours and requires someone who is skilled in the installation and configuration of the individual applications. You get increased security, reduced time to install, and reduced risk of misconfiguration, all of which results in a lower cost of ownership.

Ubuntu LAMP server Install the following Versions

  • Ubuntu Dapper Drake 6.06 LTS
  • Apache 2
  • MySQL 5
  • PHP 5

First you need to download server version of Ubuntu Version from one of these links:

1/ Ubuntu 6.06 LTS Server
64 bit for AMD and Intel CPUs

URL: Download Ubuntu 6.06LTS 64bit

2/ Ubuntu 6.06 LTS Server
Standard personal computer (x86 architecture, PentiumTM, CeleronTM, AthlonTM, Sempron
TM
URL: Download Ubuntu 6.06LTS Standard (x86 Edition)

3/ Ubuntu 6.06 LTS Server
Sun UltraSPARC based

URL: Download Ubuntu 6.06LTS UltraSPARC Edition

 after that you create a CD and start booting with the CD Once it starts booting you should see the following screen in this you need to select second option “Install a LAMP Server Option” and press enter:

1

Choose you language and press enter you can see we have selected English in the following screen:

2

Choose your location and press enter you can see we have have selected United Kingdom in the following screen:

3

Select keyboard layout and press enter:

4

Detecting hardware to find CD-ROM Drivers in progress:

5

Loading additional components progress bar:

6

Configures the network with DHCP if there is a DHCP server in the network:

7

Enter the Hostname of the system so in this example i enter here as “lamp”:

8

Detecting Disks and Hardware in progress:

9

Starting up the partitioner in progress:

10

You have to partition your hard disk in this i have selected manually edit the partition table and press enter:

11

It will show you the hard disk space and press enter here i am using VMWare with 10.7GB of space:

12

Create a New partition table on the device select yes and press enter:

13

Now you can see the free space and press enter:

14

How to use this free space select create a new partition and press enter:

15

Enter the new partition size and press continue i have entered 100mb in this example:

16

Select the type of the partition and press enter in this example i have selected primary:

17

Location for the new partition as beginning and press enter:

18

Now you need to select the mount point with the following screen and press enter to change mount point:

19

Now you can see the available mount points and here i have selected /boot mount point and press enter:

20

Now you should see the following screen and here you need to select “Done Setting Up the Partition” option and press enter This will create the /boot mount point with 100mb of space and you can create the / mount point in the same way with the existing space.

21

You can see this in the following screen here you need to select “Finish partitioning and write changes to disk” option and press enter:

22

Write the changes to disk option here you need to select yes and press enter:

23

Creating ext3 filesystem in progress:

24

Configuring the clock option here if you want to leave UTC Select yes otherwise no and press enter:

26

You need enter the Full name of the user you want to create for your server in this example i have created test user select continue and press enter:

27

Username for your account in this i have entered test select continue and press enter:

28

Entered the password for test user select continue and press enter:

29

Confirm the password for test user select continue and press enter:

30

Installing the base system in progress:

31

Configuring package mirror this will be related to your country option:

32

Selecting and Installing software in progress:

33

Installing GRUB Boot loader in progress:

34

Installation complete message here you need to remove your CD select continue and press enter it will reboot your server:

35

After rebooting you can see the following screen prompt for username:

36

This will complete the Ubuntu LAMP Server Installation and your server is ready for installing applications which supports Apache, MySQL and PHP.

Enable root Account in Ubuntu Server
(
Not Recommended for security Reasons this is just Optional)

After the reboot you can login with your previously created username (test). Now we will enable the root account using the following command

sudo passwd root

and give root a password.

Now onwards we become root by running the following command

su -

Configuring Static IP address in Ubuntu Server

Ubuntu installer has configured our system to get its network settings via DHCP.  Now we will change that to a static IP address for this you need to edit Edit /etc/network/interfaces and enter your IP address details (in this example setup I will use the IP address 172.19.0.10):

vi /etc/network/interfaces

and enter the following save the file and exit

# The primary network interface

auto eth0
iface eth0 inet static
address 172.19.0.10
netmask 255.255.255.0
network 172.19.0.0
broadcast 172.19.0.255
gateway 172.19.0.1

Now you need to restart your network services using the following command

/etc/init.d/networking restart

You need to setup manually DNS servers in resolv.conf file when you are not using DHCP.

vi /etc/resolv.conf

You need to add look something like this

search domain.com

nameserver xxx.xxx.xxx.xxx

(For xxx.xxx.xxx.xxx substitute the IP address of your DNS Server)

This is really simple and easy server installation for new users and who wants a quick server.

Enjoy.


Fatema and Myself

My Skype Status

My status

OpenDNS

Use OpenDNS

Catagories

Recent Comments

RSS