Sunday, February 12, 2017
Install Ubuntu LAMP Server 12.04 LTS into VirtualBox
##########################################
Hello my name is mike rain and i'm from rent.com this demonstration by installing ubuntu 12.04 LTS lamp server into virtual boss lamp stands for linux apache my sequel and PHP or sometimes Python or pearl mixes the operating system that 12 is based on patch is a web server my sequels a database and PHP scripting language used to make web pages outcomes should be to cut should be able to configure virtualbox form onto lamp makes Apache my sequel PHP with ssh secure shell secure shell or ssh is a method for logging onto your silver remotely install ubuntu lamp server with ssh update the ubuntu server and then verify installed by making sure that the apache web server is working that will do is a start another virtual machine and see if we can see the output from the apache web server requirements of ubuntu server 12.4 long-term service iso file virtualbox nothing i'm ready to run both going to server in the host operating system 512 megabytes my bare minimum recommendation for 12 server you'll need more memory if your lamp server does any work an internet connection and you're gonna need a dhcp server or some way to for your 12 server to get a an IP address additional info would be what's new about the 12 12 and you're going to server guide in this section I'm.
To configure virtualbox for another 12 64-bit server this is relatively easy because virtualbox makes most of the default settings or for you as long as you choose the correct operating system that you are installing just follow the new machine wizard and you should be okay.
Like new and welcome to new virtual machine wizard next and we'll give it a name this case it's going to come to call 12 lamp 12 because i'm going to make this lamp server but you can make whatever type of ubuntu server you wish and the operating system linux and it says version of ubuntu but let's make sure that we go to a boon to 64-bit because this is going to be a 64-bit server if you just choose a boon to you're going to have different default settings then you would if you choose Ubuntu 64-bit make sure you get that 64-bit in there.
Click Next and it's 512 megabytes that's recommended minimum but i'm going to make this a 1024 megabyte or one gig click Next create a new startup this click Next.
It's a mineral world on that last page 128 gigabytes but we're going to increase that and we're going to choose the default virtual disk image and dynamically allocate fixed size is faster but it takes up more hard drive space dynamically allocated simply means that it expands to whatever you have considered as the most for example had picked eight gig your bike sub storage that means when you after you install the server it will probably have somewhere between two to four gigabytes and then gradually increase up to 8 gigabytes advantage of this simply is that you don't you're not using your hard drive.
For empty space click Next and i'm going to choose 20 gigabytes will not take up 20 gigabytes of hard drive space it would be dynamically allocated start off at 34 and go all the way up if you continue putting software on to your server and we're going to use the default location for the virtual disk file click Next create create and so here we have a bunch to lamb 12 and so pretty much everything is death once you have your new virtual machine wizard run and you create a new virtual machine there are two more settings that you have to make especially if you want to use this as a server the first or setting is at storage and you need to have this ide controller your ID secondary master pointed towards your ISO file or where your install file is from downloaded from a boon to so do that you simply go set up the virtual CD drive and then you can choose this case i've already got it sit sitting here but let's choose a virtual drive so we can see how it goes through there and so you can see that you can go downloads wherever it is it's just a you find if you know where it is you can find it and then have the storage point to it and just click open and so now it's it's located words where it can be pointed it to and that will allow you to start your virtual machine and actually install ubuntu so click OK on there the second thing is on the network click on the network and we need to make sure that we have a bridge adapter going to normally when it the default setting is net or address translation and when i'm going to do i'm sorry when virtualbox does this it will give each virtual machine the same n80 address or IP address so make sure this is set to bridge adapter so that when the virtual machine virtual server starts it'll get an IP address from a dhcp server or a router and then we can make sure that the web server the apache web server is working so this is set to bridge adapter set this okay and the next step simply is to start our virtual machine installed the software in this section you want to install ubuntu lamp server into a virtual box already configured here a machine right here 12 lamb 12 to force as a 64-bit server here is the file is going to be loaded into it from the ID secondary master so that should be already set so all we have to do here is highlights select start click ok because that's virtualbox in here we have english just hit enter and we've got choices here multiple servers install we're just going to do a simple server install just you can you can use the arrow key to come and do their and simply click ok let's get rid of that so again it asks you for the default language you've got a couple of choices actually in english united states english new zealand English and just pick United States and so you can try to have your keyboard with labor board.
I'm sorry you can try to have your keyboard layout detected and i'm going to click no because if you go through that then you go through a number of extra screens and layout of a keyboard varies i'm going to pick English us again and matching the keyboard for this machine English us so it's going trundled along in low different parts what i'm going to do a fast forward on this as we go through this install and it looks like a page flip so anytime you see page flip you know I fast forward and went on to next section here we are attempting ipv6 our configuration and three green the network with dhcp ok so now we need a hostname i'm going to call this one to actually put everything in lower case.
Lamb 12 tab continue full name for new user i'm just going to use my first name but you may want to put your full name Mike and then tap continue username for account again Mike continue password i'm going to choose a password the same one I use for most my virtual machines on the education environment or the YouTube environment continues going to ask that you retype your password and crypt your home directory that's your choice i'm going to pick No and it's going to get the time and based on your present physical location time zones america new york you can click this is not correct they'll take you to the whole list of screens so well let's go through this list of screens and then you can go and make a choice in this case I'm just going to leave in New York and there's a partitioning method you can do it manually soul of encrypted i'm going to use entire disk and set up the lvm haven't do it automatically default choice and select this to partition remember it's a scuzzy disc with virtualbox and a moon enter and here we've says ask you if you want to all right to change the disc and so we've got to do a shift tab to get to yes because we've got to hit yes here so and if i had originally set this up to 20 gigabyte hard drive and so here it is 21.2 gigabyte so that's good and let's go to continue with the tab and hit enter and if you continue changes listed below will be written to the disc and we're gonna hit shift tab yes we want to have them writing written to disk.
And installing the base system the lamp part will be installed later and we'll just let it go through and do its work and if you need to use a HTTP proxy to access the outside will enter the proxy information here at do not need to enter information for myself so I just click continue.
And applying updates you can you have three choices no automatic updates installed security updates automatically or manage system with landscape landscape is that is a something that when you'll have to pay for and it's also from 12 but it's our security system for their servers that you pay us i think is a monthly or yearly fee or something like that in my case I'm going to choose install security updates automatically for this one because basically this is gonna be my 12 lamp basic system that i'll be cloning to create other systems for so now here's where you get your choices uh I'm going to choose open ssh server just hit the space bar at the bottom of the keyboard and that will put a star there and i'm going to select lamp server was which stands for linux apache my sequel and PHP and the open ssh server allows anyone to login from the network or internet.
Well probably from a network depends how you have it configured and you've got other choices you can have mail server if you want to use post GRE SQL database instead of my seek well which comes with the lamp server you should probably choose that print server Sam file server allows both Windows and Linux machines to access files off this server once it's configured tomcat java server allows you to serve java web pages and java java files for web a virtual machine host and you can use a manual package in my.
Chase I've chosen lamp server and openssh server once it's all the way down and hit a tab continue and at the end of this we should have a running lamp server without any problem ok it's highly recommend you set password for my seiki seek well administrative user so I'm gonna give it a password and make sure you don't lose this or you know you've got all these passwords you have to remember so r and it really should be a different password in the server so write them down somewhere have some documentation to keep track of what you're doing here so once it's in there i'm going to hit enter and it's going to ask for you to retype it and away we go now you ask.
Install grub loader on the hard disk we're going to click yes take it to default system because we start off with a clean system so we don't have to worry about doing it.
Creating any problem the master boot record it yes or a boot loader arm which you let actually goes in and lows the operating system.
Installation complete so it's time to boot your system make sure remove the installation media in virtualbox what kind of do this for you if it doesn't we will remove it.
So here we are restarting ask for your login may miss type my password and so now we're in.
So here we are we've logged into a bun 212 our lamp system if you notice if you're reading this you'll notice that says a system information disabled due to load higher than one point oh that's something we looked at later basically uh when / starts up you may have a problem right there 33 packages can be updated and 16 updates or security updates so one thing that we're gonna have to do here is update and then upgrade the system so make sure that it's selected goes sudo apt-get update now last you for your password and it will make a list of updates that it can not available to you once it's got that list you go to sudo apt-get upgrade and NS if you want to continue and and do your upgrade just click yes and it's going to trundle for quite a bit especially if it's getting a linux core upgrade and we'll come back when it's finished you'll see a page turn so all the upgrades have been done so let's go and do a sudo reboot in order to verify that the apache web server is working in r12 lamp server simply start another machine and we'll remove this and expand this machine here and when this machine starts up what we'll do is uh we will log on and see if you use the web or two browser to make sure that everything works so on the second machine put in a password on our server.
##########################################
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment