Sie sind auf Seite 1von 32

DBIT

Dewhirst Bangladesh Information Technology

LAMP (Linux,Apache,MySQL,PHP)
Installation Guide on Debian Linux
Author: sjayaraman

LAMP Server Installation Guide | [Document subtitle]

DBIT

Document Version Control


Version

Date

Author

Changes

Draft

22/08/2016

Saravanan Jayaraman

Draft Document

Document Information
File Name and Path
/var/www/apps/conversion/tmp/scratch_2/335855931.docx

335855931

September 24, 2016

Contents
1

Summary.....................................................................................................................................................4

Installation Step by Step.............................................................................................................................5


2.1

Installation of Linux Debian Distribution.............................................................................................5

2.2

Step By Step Installation Screenshot.................................................................................................6

1
Summary
LAMP server is an abbreviation from the components which forms the word LAMP. L being Linux, A being
Apache, M being MySQL and finally P being PHP. This is basically a webserver with PHP as the default
scripting language and MySQL as the default database. In Windows , these server is abbreviated as WAMP, W
being obviously Windows and the rest remaining the default component
There are various other components that you can install along side with the LAMP installation such as PERL,
Python, and other modules. An easier method to have a integrated LAMP server is to use application such as
XAMPP, APPSERV or etc
I always find that installing these in default state and manually provides a stable and configurable options which
enhances the knowledge of these components working together.
The Speedtest appliance project is based on the below sub projects :1. Debian Server Installation
2. LAMP Installation
3. Speedtest binary Installation
4. Custom Speedtest Scipt to be installed including webportal for speedtest site.
5. Goto server config screen to manage configuration of the site appliance
6. Cronjob script installation for automatic scheduled speedtest run and reporting

335855931

September 24, 2016

Installation Step by Step

2.1 Installation of Linux Debian Distribution


Download the basic minimal debian distribution from the following website
http://cdimage.debian.org/debian-cd/8.6.0/arm64/iso-cd/debian-8.6.0-arm64-netinst.iso
Burn this onto a cd and run the insallation. If you want to use a USB to do the installation , please use RUFUS
and change the option for CREATE A BOOTABLE DISK USING -> DD IMAGE. Using USB will cause an issue
later when it tries to mount the cdrom for installing system base but the installation is running from USB. To
avoid this issue, please use cdrom which has ISO burn into it.

335855931

September 24, 2016

2.2 Step By Step Installation Screenshot

This is the initial screen upon boot-up CD or USB

Choose your language. In this case choose English as highlighted

335855931

September 24, 2016

Choose your location. Please choose the correct to ensure Unicode and other language support is provided

Now choose your language.

335855931

September 24, 2016

The system will now check your installation source.

The system will now try to get more data from source to auto configure network interface

335855931

September 24, 2016

The system is now configuring a temporary network profile

Trying to get IPv4 or IPv6 DHCP auto configured on the first available network interface (ETH0)

335855931

September 24, 2016

When it has found a valid network interface, it is now configuring the interface using DHCP

Now you can specify a valid hostname. Our speedtest hostname should be standardised as per our device
naming convention. So the speedtest devices should be named dewukbirst01

335855931

10

September 24, 2016

Once done, use tab to move cursor to <Continue> and press Enter

Provide the internal Dewhirst domain name

335855931

11

September 24, 2016

Now give a root password. I suggest to standardise this to D3wh1rst

Type this and use tab to move to continue and press enter

335855931

12

September 24, 2016

Enter the password again and continue

The system will now ask to create a user account

335855931

13

September 24, 2016

Enter Full name as Dewhirst Speedtest

Enter username speedtest as the normal user account

335855931

14

September 24, 2016

Now enter password as D3whirst. This is the password for the user speedtest.

Please enter again the password and continue

335855931

15

September 24, 2016

Now the system will setup time and date based on the location given

The system is now detecting all hardware components connected with the system

335855931

16

September 24, 2016

The system is now ready to work on the hard-disk

The system is loading up some tools and configs to prepare to work on your hard-disk

335855931

17

September 24, 2016

The system is invoking the system partitioner. Wait for it to complete

System partitioner is running. Please choose Guided-Use entire hard disk. We need to choose this as we want
the speedtest server to be only dedicated to the speedtest application. Press enter to continue

335855931

18

September 24, 2016

If you have only one hard-disk , this will be options available. If you have multiple hard-disk then please use the
hard-disk with the id (sda) which mean first hdd. Press enter to continue

As this is a linux server meant to be virtually an appliance for a single function, it is best to leave this to be in
one partition. Press enter to continue

335855931

19

September 24, 2016

The system is now partitioning based on the previously given parameters

The System has now made all the partition requirements and displaying the details. This is not yet commited to
the system. Please choose the highlighted options and press enter to commit the changes to the hard-disk

335855931

20

September 24, 2016

The system is now ready to make the changes. Please tab to YES and press enter

The system has partitioned the hdd and now installing the OS base components

335855931

21

September 24, 2016

Please choose the country nearest to your location. This is to ensure all your updates and installation is quick.

By default , choose the top options as your mirror and press enter to continue.
Unless you are sure very sure the mirror you are choosing is the mirror you know is available.

335855931

22

September 24, 2016

Do not use proxy and just tab to continue and press enter

The system is now looking at the mirror server defined and looking for packages

335855931

23

September 24, 2016

The System is now configuring the package manager to reflect all the options and mirror information.

The system is now installing base components and minimal server software. It will also upgrade is components
and required upgrading.

335855931

24

September 24, 2016

Please tab to NO and press enter.

It is now installing OS components. Wait for this to complete. It may take sometime.

335855931

25

September 24, 2016

Please only choose SSH server and standard system utilities. To select and deselect, press spacebar
Once done tab to continue and press enter

The system will now install the standard system utilities and SSH server

335855931

26

September 24, 2016

The system is now installing GRUB (Grand Unified Bootloader).

The system is now requesting the bootloader installation location. Please install to Master Boot Record (MBR).
Choose option YES and press enter to continue

335855931

27

September 24, 2016

Please choose the first hdd /dev/sda to install the bootloader (GRUB)

The system is now installing the GRUB

335855931

28

September 24, 2016

The system is about to finish installation. It is doing some final configuration etting based on our previous
parameters given.

The system has completed the Linux Debian Minimal Server components.
Tab to continue and press enter to continue

335855931

29

September 24, 2016

The system is now doing some final cleaning and tidying job and will reboot.

Upon reboot, this will be your first screen. This is the bootloader screen (GRUB).
Choose Debian GNU/Linux and press enter

335855931

30

September 24, 2016

The system will now bootup and run all the startup components

The system is loading all the base system components

335855931

31

September 24, 2016

As soon as it is completed, you will see a login screen.

For now login as root and password D3wh1rst.


It should give youre a prompt as root@dewukbirst01:~#.
This means you are logged in as root (super user).
--------------- Complete --------------

335855931

32

September 24, 2016

Das könnte Ihnen auch gefallen