ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

LAMP server: Easy setup in a 5 minutes

Updated on October 8, 2013

What is DNS?

Dynamic Name Server is considered as name resolver. What it does is converting I.P address to more easy to remember address that is today commonly used in World Wide Web format.
in example: instead of typing IP address of server:, DNS server will convert to

Did you know?

DHCP server is assigning I.P addresses to the servers, and computers in internal servers as well as on Internet. Dynamic Host Configuration Protocol or DHCP shorten, is an scope of protocols allowing computers to "ask" and "get" unique I.P's for every PC on network from the DHCP server.

- So what it does is gaining automatically offered I.P address, and "find out" other crucial data such as router I.P, DNS Gateway, Sub-net Mask I.P, and so forth...

DHCP started to be used as protocol in 1993. It was more functional than it's previous "brother" called BOOTP.

DHCPv6, still not standardized, was introduced in July 2003. It's predicted that DHCP(v4) will be overloaded due huge increase of need for it; and DHCPv6 will be - then - standardized and widely used. Just as IPv4 and IPv6.

How does DHCP works?

This is how DHCP server communicates with Clients - PC's that are "asking" for the I.P address.
This is how DHCP server communicates with Clients - PC's that are "asking" for the I.P address. | Source

Linux operating system as a platform for a server

Linux comes in various versions. Some of the most common ones are: Ubuntu, Red Hat, CentOS... This hub will teach you how to setup LAMP server on your own, without hiring IT specialist, engineers, or hiring freelancers to do it - without proper knowledge, experience or certifications...

- As Certificated System Administrator for IT Network Infrastructure; I feel that my experience of working on similar projects can highly contribute to many people that want to have their own internal or external server.

Internal server: this type of server would be server dedicated for employees in your company; having no gateway out to Internet. This type of server is really handy as it can host internal web-site, can do file exchange role, can be really handy when it comes to the point of share where System Administrators can manage what (and who, and even when) can make some document; or if server has Internet gateway (Hybrid server) then System Administrator(s) can even limit download speed, upload speed, put quotas on disk space usage, and many other useful things to audit what employees are working in your environment.

External server: this type of server is the most commonly one used, but without proper security it is the most common target of hackers and D(D)oS (Denial of Service) attacks.

LAMP external server could be accessed with via I.P address of server and/or trough registered domain connected trough DNS/ FqDNS sever role. Security is very important to the servers that are allowed to be accessed from Internet, that is: from outside of internal network.

For making your own server you need to know Computer Networking basics, at least, such as what are things like: Name Server (NS), Dynamic Name Server (DNS), Dynamic Host Configuration Protocol (DHCP), I.P (Internet Protocol), TCP/IP (Transimission Control Protocol over I.P) Multicast (traffic that transfers data in packages (with headers where destination I.P and the way the data should be transferred) and CRC (Cyclic Redundancy Check) on the end that checks if all data transferred is collected and put on "right place"( imagine puzzle and every piece of puzzle is one bit. CRC checks if all transferred bit's are on right place) while Broadcast data traffic used in audio or video streaming (commonly uses UDP protocol) do not check way of data collected and that's why you might see in Skype video conferences errors and mixed pixels on picture - for example.

Picture LAMP as this...
Picture LAMP as this... | Source

Did you know?

Tapping DEL/Fn+F2 button will open up the BIOS (the "thing", combination of keys, that appears on splash screen at the start-up of your PC/Laptop saying:" Press ____ key to enter setup ". That key, or that combination of keys at that sentence, or similar one, is the one that leads you into BIOS (Basic Input Output System).

BIOS: Navigation

On bottom of the screen, every BIOS will give you additional info on "How to Use" and what to press for which function. For instance, on bottom of screen, you will even found keys for navigation trough BIOS and changing "values".

Installation on physical or dedicated (remote) server

Installation of Linux OS on server should be hard if you have done installation of Windows. It's practically the same thing, except the fact that with Servers it's more recommended to install CLI version of server. CLI or Command Line Interface type of server is more scalable, and more secured type of server, leaving less "wholes" for potential hack-attacks.

To install Linux on your computer, you will need .ISO / virtual image / CD of the Linux version you're about to install. Let's say, you want install "Ubuntu" version of Linux.

Scenario 1: Installing Linux from CD

To install Linux Ubuntu from CD, you have to have a boot-able version of CD that contains setup. After getting it, you have to make some changes in BIOS. Depending on the version of BIOS, "boot" or "boot sequence" option is under different menu. But, in any case, by continuesly pressing (commonly) "DEL" button immediatelly after power-up/ reboot/ restart or on some laptops you need to press "Fn" (function key) and F2 button continuesly.

* See "Did you know" *

when you are in BIOS go to "BOOT" options. Under "Boot Sequence" find first boot device. By default it's Hard-Disk (Primary). You will see, for example if your Hard-Drive manufacturer is "Western DigitalTM", you will see something like:

" 1. WD ModelAndEditionOfHD HD " <-- This is your HD

Below it, most commonly, you will see next thing in case that your CD/DVD drive is PhilipsTM:

" 2. Philips DVD/RW ModelAndEdition ... "


What you need to do is to switch 2nd with 1st. So that your primary (1.) boot device be the CD/DVD drive and secondary boot device (2.) is now primary. So, basically you just switch places, most commonly using keyboard, and most commonly "PageUp" (PgUp) or "U" key. (on some newer machines)

After doing this, put the CD/DVD in and press F10 (Save and Exit) and confirm. Press "Enter" on your keyboard on "O.K" or "Yes".

* See BIOS: Navigation (on right side) *

Now, after doing this, your PC will reboot/ restart. It will show splash screen: do nothing. When "Press any key to boot from CD ... " press ... Guess what? - Any key on keyboard.

NOW YOUR LINUX INSTALLATION IS STARTING. Just follow simple steps in Wizard and choose the right settings. Be aware that Linux demands totally different type of partition, so make an partition before starting installation... Or you can format your H.D partition (C:\ will be HD(0) D:\ will be HD(1) ...etc... ) you are AWARE OF THAT ALL DATA ON IT WILL BE ERASED!


OK... So you installed your Linux Ubuntu for very first time. Press CTRL+ALT+T to open the "Terminal".
At the terminal type:

user@host#: su root

Press ENTER, and enter the ROOT password ( the one that you've been asked during the install of Linux)

After that you should see that your Security User (SU) is changed to: ROOT

Once there type:

[root@host$:sudo apt-get install lamp-server^]
Go smoothly over installation and whenever asked for password type the ROOT pass.

Scenario 2: Making LAMP server on dedicated

This is the most common scenario when it comes to companies and firms. So, what you get with renting dedicated Linux server is CLI interface on it, without anything. One of good sites to rent dedicated servers is .

Now, once you're there, you have to log in. ROOT user is the user with the most privileges. Program to access your dedicated/ remote server/ for Linux - what I recommend is PuTTY.
Normally, you just type in I.P of the server and port 25... And whola! You're there. Type in root password, and you're there and ready to setup your very first LAMP server.

Watch my tutorial below and see how to do it yourself.

How To: Install Lamp Server Tutorial (1)

Which type of server would you prefer: Windows or Linux-based ?

See results


    0 of 8192 characters used
    Post Comment
    • lafamillia profile imageAUTHOR


      5 years ago from Soutcentral Europe

      Visit if you want to make your own LAMP server or simply contact directly VIRT team trough mail:

    • lafamillia profile imageAUTHOR


      6 years ago from Soutcentral Europe

      I am in process of recruiting a team that is willing to go and represent given name to that team, and start making money as a freelancing company under "one roof".

      - "Two heads are always smarter then one". Whoever is interested in gathering under "VIRT" called team (that I am about to make), is invited.


      - People with IT experience

      - People who LOVE to work

      - People who are ready to work on volunteer basis until VIRT becomes paid with it's very fist client!

      - People who tend to be successful and start something /

      - People who take initiative on their own

      - MOTIVATED people

      - People who DO realize that making a good HR infrastructure, and performing tasks (as a start-up tasks/ for some: test) as they were paid (with that much ambition and willingness to work).

      So, VERY WANTED PERSONNEL WHO WANTS TO WORK/ WHO DON'T WANT TO TAKE MONEY FOR WORK BUT TO EARN, PPL WHO ARE READY, AND PEOPLE WHO ARE READY TO INVEST SMALL AMOUNT ( ~1000$) to gain in 3-6 month that invested money, + profit after VIRT is stabilized! All young pros are invited too!

      E-mail: (no G)

      Biz mail:

      Work mail:

      Phone: +381 61 281 59 10


      Draft homepage:

    • AlexK2009 profile image


      6 years ago from Edinburgh, Scotland

      Thanks for this.

      I think there are installers that make setting up a LAMP server simple and fast once Linux is set up. There is also MAMP which does the same on Mac.

      Interestingly PHP is becoming more in demand nowadays while MySQl seems to be becoming less popular, and Apache seems less in demand though the Tomcat Web server has quite a bit of traction still.

      The bottom line is LAMP lets you do a lot of things fairly easily but the commercial demand seems to be dying, so install it if you love coding with these technologies but don't expect them to get you a job; except the PHP.

    • rasta1 profile image

      Marvin Parke 

      6 years ago from Jamaica

      I'll bookmark this hub for reference. I appreciate the information.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)