Поднимаем свой собственный web-сервер на Ubuntu за 60 минут

Поднимаем свой собственный web-сервер на Ubuntu за 60 минут  See details »

 
Video subtitles:
  • 00:00:00: so all good evening time 7:00 in Moscow and will not pull probably the time is really with us little because even the topic is already here on the screen is there in 60 minutes we are today try to raise your own web server as well as possible yes it is another question but we are still with you will try to do it
  • 00:00:32: please write now at Is it good to see the comments well ? can I hear the pluses at the same time let's see how many of you and everything is all right us with a connection between so great with communication us all fine Immediately so that everything can be clearly seen in broadcast settings set as you can
  • 00:01:02: higher quality I do not know there what Now we will have available but straight the highest because we will not only watch this presentation here but also work with you right on practice I will immediately say that we are today analyze the whole presentation and it will appear link to it in the comments under the video so nothing will ever go away then use it in your practice so that's why ubuntu and in general what is it let's talk
  • 00:01:35: more in detail why are we suddenly today start studying yes how does it roll itself into a server linux why isn't this some kind of server on linda I'm the same but in general by statistics over 70 percent of all sites run on servers for which ux installed one or another assembly assembly this linux is really big
  • 00:02:05: please set and cent and ubuntu and debian and so on and so forth so on they are full but according to statistics Ubunt is probably the most favorite of all really linux and ubuntu distribution very much support from users of mutual help is very many forums and if suddenly arise some questions then most likely these problems have already been solved need only go to google and find the answer
  • 00:02:35: it is ubuntu to enjoy such popular it is her we will begin today install everything on the server you can start the server yourself just buy some hosting and there website do but if you want to be exactly webmasters up to wagon something need up ability to work server it obviously here I like I work and web developers at the same time
  • 00:03:07: administrator in the center of remote educational technology of Samara university we are doing promotion here distance education and these technologies and therefore not only sites on have to write but also administer servers on which everything these various systems here for the station wagon today's occupation yes she will be very useful, I hope where you can your server
  • 00:03:37: first deploy before to to train stuff bumps so let's say try everything do it yourself Well, where to install first you can it's very easy to take some old your computer or laptop and pay attention to what minimum installation requirements server version ubuntu is a processor frequency of only there 300 megahertz
  • 00:04:08: RAM 192 MB disk space 1.gif gigabytes but this is ridiculous this is the minimum requirement the server will work but if you are in Further to serious unfolds server which will be highly loaded site and naturally these characteristics will not be enough for you everything needs to be multiplied at times at times at times but here they are the minimum requirement here here is why there is anyone computer do not mind please all that we do today is you
  • 00:04:39: can repeat on it and in principle get a healthy server if this is not yes then you can install ubuntu next to your window let's say and if at all sorry screw up something like that mess up on your computer can run virtual machine your OSes which will completely emulate yes this one
  • 00:05:10: separate computer in which you can set anything to anything OS whatever actions you take there if even you break a question here virtualku delete unfold a new one really testing ground he has anyone ever used virtualization system at least some virtualbox there or so on to anyone if this is familiar then here I see yes there is
  • 00:05:40: but well I just don't know which one level count Well, let's start with a simple virtual box download before use hypervisor fine on virtualbox virtual box download and install recommend I 'll start it here and let's start work create a virtual machine well
  • 00:06:14: call the web server immediately if we set ubuntu then choose linux 0 6 6 4 bit system we will not need much RAM here Now I have a computer on the 8 gigs of one well gigabytes and select answer to the question the record will be
  • 00:06:49: yes then I would practice further create a new virtual disk here there will be two options you can set dynamic virtual disk size until that is, it will increase by as accumulation either fixed well on in fact, there is no particular difference therefore I choose dynamically so quickly it turns out that we are not sorry gigabyte allocate for him here I suggest 10 by 10 and we'll save it to
  • 00:07:19: any d drive over here proper virtual machine created yes you can interpret it as normal the computer that you have is just resides on your local computer but before you install, yes let's see some settings which we will definitely need but
  • 00:07:49: so we will have a good got us need to computer to the network was connected so select the network tab and the type of network bridge connection is we have a virtual machine will be in the local network of your home get and pi address and you from any computer of your home locality you can go to this web server Of course, so that we install ubuntu to us need to
  • 00:08:20: Install disk correctly here here you can enable image where him download this image well who have never encountered the ubuntu distribution is all very simple done in any search engine yes second link this will be even the first ubuntu in Russian pay attention here you can download different versions but for today the moment well that is now from 26
  • 00:08:52: April , the newest version 18 and there are some changes here we are offered to use the new ubuntu installer I'm actually here too new yet did not use but with you let's see yes how is this new the installer works and how it differs from old who is already the installation process spent well press the download button but I already downloaded it to us time
  • 00:09:22: spend and click connect choose downloaded image Well, by the way, another important remark here we are naturally we select the server version they desktop they differ not only in size but also and the fact that the disc stomps that this version which need to be installed on the computer and yes it is almost like a Windows which you can freely use with graphical shell and so on but also
  • 00:09:52: server is not accepted to put these here versions with lots of extra applications this is clean naked ubuntu doesn't live without everything a lot of memory and we will use it ok, we can actually run everything virtual machine here we have the window will go with you through the whole process
  • 00:10:27: installation especially since this is how we promise some kind of installer let's see what we need to do I will answer the question vlad to site the application worked constantly needed so that the computer was always running and on it virtualka well, not at all Vlad need to
  • 00:10:58: always has been started on the server that is if your server is not a computer yes the computer should always be on if the server is not virtual machine on this computer there naturally workable should be is always But we will choose with you the Russian language layout keyboard let's add another Russian so ok and that's it when we have chosen a language we can proceed to
  • 00:11:39: installing the operating system on this stage here is the installer shows us whether our computer is connected to the network virtual machine yes indeed to network connected here even years already allocated virtual address ip address is therefore okay proxy we don't use therefore just skip this step and here is the setting whether the disk is down disk at all if here you do a trial
  • 00:12:10: such a systemic virtual machine you can use the first item yes that is, use the entire disk and not soaring about it but actually if you want to deploy completely good server you have to do disk layout like this done for ubuntu here is the first option on the slide are presented this disk breakdown in the event that you
  • 00:12:40: ubuntu put next to windows winchesters before hard drives in ubuntu are called as device with d and if the first hard drive sdb second hard drive and so on so further, respectively, may be several sections on it and they already the numbers start to sweat here we are hard drive can we split into four main sections so the whole can be a sum of up to four from s to 1 yes to 4 and one of the main
  • 00:13:11: sections and we can make extended a extended partition is broken into unlimited logical sections this here is such information which just needs to know exactly on extended section we can install ubuntu because we can expand develop to unlimited number of logical partitions so here what is the minimum amount of any logical partitions should be in order us to establish a riot and here they are three here
  • 00:13:42: and presented yes it is a system partition will be root our operating system swap swap it is used to if you have the software is already devouring the whole RAM comes into play swap partition that allocates memory additionally to run applications Well, the home section where they are stored custom files for what it is done well if you come in suddenly
  • 00:14:12: you can reinstall the system reinstall the system partition without affecting yes this section of home that is, all your personal data will remain and the system you reinstall and Well, now we will do exactly that This is the second layout because we have now virtual machine is connected din winchester yes this drive is 10 gigabytes which we did break it into three logical partitions system swap and custom so
  • 00:14:42: let's start the handle we break here we see to 1 disk 10 gigabytes and the second is with us connected disk with our ubuntu break that is, 2 is ours up to 2 we break let's start with the system partition under ubuntu
  • 00:15:15: Well, let's conditionally give 4 gigabytes we have enough format it as exd4 and mounted in karma to the root that is This slash root glues create so here at we have a root further from us
  • 00:15:50: there are still 6 gigabytes of free water decided to allocate a swap partition as many gigabytes as you have RAM but we are with you if not I am mistaken to allocate somewhere in RAM 1 gig yes therefore the swap partition will do also one gigabyte format it swap swap format create everything we have almost 5 remaining space gigabyte we give away home 499 from
  • 00:16:25: 499 and will a 997 change so hall we select here the point should be therefore release so we create everything proper
  • 00:16:56: speaking we created with you three logical section ready everything checked ready ask do u have we true what do we want so make well yes sure even if something screwed up the Almighty so it can repeat again well forgive keep the data I will answer the questions when we have go install just but admin name we will dial the server we will name ubuntu
  • 00:17:29: user also admin password too we will set the administrator naturally on the worker server not recommended but here we do not care everything actually went installation systems here what is specifically asked the ubuntu distribution is recommended to setting well I will leave now the most new as it is probably interesting
  • 00:17:59: but because it may be someone else for month and did not have time to deliver but I recommend you to use 16 version 1604 because it will still long enough be supported here and on it a lot of different manuals and there doctored bugs and so on so further, that is, she is such workable so you can 16 yourself put here is the installation let's talk she still still
  • 00:18:30: little bit about ubuntu anyway time is busy something needs statistics so dry 20 million users use exactly the angle of what is in itself says that the system is really good ones like i said first The list is up to the leaders in distributions by use on in servers that confirms even the fact that Wikipedia lays on Ubuntu over whether what versions are every
  • 00:19:02: half a year there are new versions but there is still versions of the so-called mts but translated as long john support yes that is especially long supported versions which appear once two years and support For five years, that's 18 will be maintained for five years and 16 such 1604 lts and both server and desktop options so any of them can
  • 00:19:32: quietly use and train so let's say for now all the same we have installed the server which we will get it from you work your local network but in theory no one can prevent him use as fully working good server but for this we need to send we need him to somehow
  • 00:20:03: went online how is it done here small such a slide how to make a server available on the Internet bring it to the network but all these as probably most of you already known yes there are local and global Here is our server looking in local network and it is within this local network he gets your unique ip-address but for the server to be accessible from Internet, he should get so called white ip address which
  • 00:20:35: issued by your ISP she As a rule, the service is paid and for some there is an amount per month but if they wrong I think it's worth rubles seventy month well i mean from such money is small your provider can give you a static white ip address which you can assign to your server installed and in fact it will look on the Internet and appear full web server but
  • 00:21:05: which may lie 1 or there are several the site later if I have time I will tell a we have meanwhile installation already look finished offers reboot what we will do reboot so offer to extract The disc is ejected here now is to download server what is the difference static and dynamic epi
  • 00:21:35: Well, that's a dynamic ip because here so let me explain here you are directly without a router connected your computer to Internet networks and use while you went online your internet provider gave you some ip address since you are online with you there must be a unique ip address here free here's this ip address he most often almost always he is
  • 00:22:05: dynamic ie every new you will have a new ip address he is unique but certainly every time new but in order to your server could any computers turn from the outside given to request information from him ip address all the time should be one and one and the same and such static to static ip address and need to be a real server always available from the internet one by one
  • 00:22:36: and the same at yes about dns we will say everything right look here u we earned us OS let's login as admin admin see come by the way who can be didn't expect i don't know whether you used have you ever ubuntu there in linux server versions we will use
  • 00:23:08: that's just the console and the command line this is quite enough you now make sure first of all with you right away as close as possible to reality for what we create a server this one is local practice and be able to continue run on real web servers a real web server is never located in the same room where you are you bring it to him and do not begin to enter
  • 00:23:39: monitor commands to watch what's there happens no server is located somewhere in server at best in the same building and at worst somewhere generally elsewhere therefore therefore to servers decided to connect via ssh and for this we need api server address first of all here are connected and ip address see how we do it let's make is wonderful in linux
  • 00:24:10: program if config is an analogue of api conflict windows wines yes that is, we are there can change assign network addresses there and so on so on but now for us this command will only need one to learn ip address which is now received here this is the virtual machine we type and in config all if all ours are shown to us network interfaces that are connected
  • 00:24:43: and now pay attention if you have clearly visible yes here's the line with the mouse impossible to show but now I do not I know how to do it here Here is the address 195 209 6649 stove-maker received our virtual player and so we are now connect via ssh but now I'll show you so that it can be seen now select
  • 00:25:14: I do not remove anything for a second that's because we will work you in console a few comments yes about the main such very important console commands which you should know in the first trial in Linux can not do anything to change just like that if you don't know the password from superuser of this system called ore here if you have superuser rights i will increase now you can do many
  • 00:25:44: things and since we will today we are the majority to administer the server teams will perform out of court i mean rights superuser we are going to move files copy edit them as edited files in ubuntu actually have too several programs but i recommend you in
  • 00:26:14: the first place master a text editor on but such same command actually he runs and we will naturally install new ones programs for installing new programs to delete to configure update is used console apt-get tool in ubunt we will use it too See 3 to very important new teams.
  • 00:26:45: we looked but before them use and let's connect to our ssh virtual machine what is ssh so secure shell that allows you to encrypt data between you and the server before that thus safely manage them well to from under Windows connect via ssh in our to I recommend using our virtual machine free program ways to download it
  • 00:27:15: can be very simple and I'll run it now look here she is it starts here I did not run a now I'll show you where the stage address is was visible see here I am this very path right here you stressed that line where you could see and see the ip-address look here this ip address i drive in
  • 00:27:48: here 195 209 66 149 port on the way to the belt sage default is 22 its we leave well, let's call this disconnect ubuntu here so save here i saved for so that there would be no further such complaints about increase I immediately
  • 00:28:20: Now I will increase it here here is 18 loop leave now save and Now we will connect to ours server accept the key you see we with you are connected via ssh to our own this car so i fold and
  • 00:28:51: we work now its only this console login password admin admin by the way see whether now what's going on us console please answer or another font to increase get great yes apt-get
  • 00:29:23: to say that he is outdated he is not less working works fine so well let's start with you perfectly look as soon as you set yourself server first i recommend you this server update update for updates are just used here
  • 00:30:00: these here are apt-get up for updates of all packages by typing these commands from under the superuser you truly some time get fully updated packages of yours systems with the latest patches there updates on do we are not now we will because already half an hour has passed we do not fit but believe it Everything must be done after the update you need to run reboot again from under the court
  • 00:30:33: we are already acquainted with the teams on the sly but with which you can reboot your system if you want your server turn off that is a wonderful command power of the buttons we have nothing turn off we gently complete all processes so that we do not flew here it is already five teams with which we met you offer it to you all do when you experiment over your own web server a
  • 00:31:03: Now as we can in our system, move between folders as we can view folder contents if not familiar to the usual shell here are two teams that too i I recommend you to remember hp the team allows us to view directory contents a sd team that allows us move not
  • 00:31:34: suddenly directories here we remember you mounted root yes here let's go with you using the hp command let's see what we have in the root of our server so I led and here we see different files folders and so on like year root go sd root all things we are now in root is therefore if we just type ls already without pointing the way to us the ls command will show us our current catalog
  • 00:32:05: and we are fundamentally all right and here on this it would be nice to have a little moment talk about file structure systems all linux allah before distributions on during first thing we need to know on the first stage and what's important root folder yes there where is our whole system folder these Seven here in this folder are all configuration files installed we will be programs today
  • 00:32:35: install software for web server and configure and we'll be exactly here in this folder these 7 if suddenly you have the server somehow works incorrectly or there are some mistakes vylaziut it all You can look in the logs on this folder war logs is also very important directories that we put on separate section as you remember when the disk was smashed this here is the hill everything else but you can read originally here Alex nickname asks if we were not fundamentally
  • 00:33:08: initially there is no once user comes in system he turns out to be his home catalog and home directories and here it is here in this home folder we expect to see catalog admin our benefit sharing called let's see is it really so well see that we have hp home here look we have just Daddy admin precisely in it we proved
  • 00:33:38: when you log in now you can not and return in order to return your home catalog not necessarily by the way to type it full You can type sd and this wavy line and you automatically appeared in the admin directory home now we are in it so I will say About editors now Sergei I give special commands to listeners so let's say a bit learned to get used to
  • 00:34:11: console here yes indeed there is and visual file managers who allow you to more clearly our system you see here is one of my favorites yes it midnight commander it is started by the command m s and actually speaking shows you the whole structure systems by the way with it you can not just navigate between folders there directories and so on but you can copy files moves create
  • 00:34:42: delete let's see how to do it but first we need this program default in ubuntu therefore it is not supplied to establish let you remember using what command do we install apt-get right but to install something to us it must be done with the help court teams up to which will give us rights superuser yes that's right Vlad says apt-get install
  • 00:35:13: with here we are requests speaking here and built and now lead it our the command line to enter requests we enter the password for a package of m. not found candidate for the installation and this is because you and I have not fulfilled update so run sudo apt-get
  • 00:35:44: the update is the team I give you recommended perform at home but will come execute and now this command what does she scans all connected repositories will give which you can install brushes additional packages and now entering installation command midnight commander we we can already install it
  • 00:36:15: go like all own realm installed we can run midnight commander ships mts launched Here we opened to see what wonderful window is ours with you home folder here if we go up up we will see that we are in fact and in the hall home folder admin even higher here we have the root of our system
  • 00:36:47: here we see all the directories about which I already said this here we war yes where there the log can be stored there and so on home directories and configurations files and so on and so forth well here by the way some wonder often ask why we are here since two let's say in two parts it's all broken up into you can actually single directory
  • 00:37:17: open to the left and the other ceiling open open on the right and copy from one to other or move from one to the other one here for this is two windows here Well, to go out and press 10 we looked really comfortable for them to use, but finally I already probably suggest to go to the installation of our web server but first as i promised i will say where can we register where we can register ip address if we had appear suddenly
  • 00:37:55: white static network setting in ubuntu with the help of commands we can already with you configure configuration files and settings ubuntu networks they lie as it should expect in the folder these 7 row her court hp see what these seven settings are there network network for 3 look what is there and here is this file interface with
  • 00:38:30: he is just responsible for what ip the address will be assigned to this virtual remember with the machine what commands we edit the file and on on therefore we enter court on on this our the way these are all on the curd interface with here y us here opened our file that you need in
  • 00:39:08: He lead us to have ip address has been static but here's the next text which must contain necessarily words aesthetics yes that is and really if this ah-pi-address received before from your the provider will not conflict with either how else will you get quite healthy server so well as long as its We do not and yet we're doing so
  • 00:39:41: our test go directly to the actual speaking to install apache apache this program up web server that accepts requests from the outside and and gives the protocol and steppe now some answer time let's remember by the way remember the way with you
  • 00:40:12: some ip address of our car was in the config here it is 190-200 966 149 let's get it copy now in the address bar browser right here copy and try to go on it Well, now this is all long loaded loaded but connection failed why because our web server and
  • 00:40:42: there is no necessary software yet ensure that it becomes its own speaking web server and here is one of most used is apache it then we are with you now we install already familiar sudo commands apt-get install apache2 so package why not called Jinx Ilya You can ask and jinx but in the subject
  • 00:41:15: Today's webinar was setup server lamp if I will conduct more I will tell you one webinar set the jynx bundle with php-fpm but today we will look at it is the lamp server that will be on the patch work here we are offered to install everything is good, we are installing here we are updating our page, see
  • 00:41:54: all server started responding or something to us gives this default server page apache here if you can read By the way a lot of useful information for extract yourself team is written here yes with the help which apache can be rebooted configure and so on but we are with you have established but agree that, in general, people are not used to type in the browser api addresses to access someone website and
  • 00:42:25: here it was already discussed dns-server yes really really about them it's worth saying what dns is but it's rude saying dns server is computer yes in which is recorded on mapping which domain name to what ip address is and these dns servers on the internet their great
  • 00:42:57: lots of but since we have our server on the local network in order for us access it not by ip address oao for some name hasta we can do it by setting our of our our windows machine on which we are now just register there conformity
  • 00:43:28: what is our site for example 1 corresponds there such and such and pi address and when we will request here in browser address we will throw on that ip but by the way naturally you will agree would not be logical if on one site yes would definitely be required one allocated server but it is economical several sites there probably millions I I do not know so much already represent would be servers as it is expensive therefore Of course on one server you can
  • 00:43:59: there are many sites so one and the address can match many domain names well let's find this one with you Here's the file windows open all income correctly so c daddy windows system32 looking for a driver these sid and here's the host file
  • 00:44:38: here we open it and edit it see what we have here I increase shift here I hope you can see another circle still make it fatter here is the mapping local host ip address but we have something with you ip what address will i look at now we recently requested all not as I can not remember in the config again
  • 00:45:08: will dial here is our ip address 195 copying here let our site is called very simply site 1 and make two sites if time enough for the same pi site 2 save everything for us need by the way admin rights I give them now the second window opens where I am already from from under admin should
  • 00:45:40: the whole thing enter the same thing pay attention here I highlighted a fragment that I fixed keeping everything we are on our local machine so say dns server configured in a quick way and now open the browser if I apply at the address of the site one will open here
  • 00:46:10: this apache server that is, everything is fine everything It worked so further that we have talked about this apache server we you have installed now take a look with you where do we have this site in which
  • 00:46:40: folder and how we actually change and how to do on one server several sites for this we will analyze several linux commands the first is m frame create a folder for what we need now for this so that for each site we create our own folder on the server in order to apache web server up could these files read and give to users who
  • 00:47:12: request from the web server must be on these are certain rights here is the right ubuntu and yes and generally in Lennoks are established team than mod well for web server enough rights as a well, usually 755 that is, there you can read some change, and so on well, and you can order so that from under the court constant not to change files on the server yes we can assign so let's say these files to our user
  • 00:47:46: currently admin are used for this teams than before which changes the owner files or folders on the linux server but now we practice all these with you team and let's try see where is the lies our site and apache is it is running this editor is understandable
  • 00:48:18: go to the root he lies in daddy war in in html here it is the index.htm file which Browser is now displayed on request by our course can be changed here report back a bunch of all sorts of files and everything will work but we are with you surrender to what task same apes opened nowhere several sites so we will create here yet
  • 00:48:48: one folder next to which we put layer already site personally well and how i am here and told them to create this folder with the command m to der court m kadir war let's name the site folder one created now she is there we can make sure how we look hp
  • 00:49:21: Var var look really here it is have a site one appeared next we want so that the web server has access to all files that are there in this folder correct therefore than from give the right of court here is the p flag recursively denotes so we assign the rights 755 not
  • 00:49:51: only this folder we are now here we introduce the barbarians but also to all folders and files there are there are more and more will do well assign all these user files admin to access them all time without a court team from girlfriends on moths need nothing to do so the court I indicated 744 sorry thank you for attentiveness we correct 755 Well, I give the right
  • 00:50:24: What are you doing recursively admin too admin in all we have done now the owners of this folder we can change all these files there move delete without a court prefix well now here is one site in this folder we need to create a file before index file which will be the main file of our site for this we use
  • 00:50:56: the program on it is a text editor who has already been spoken on to your website One you know, if we try try edit utilities on files which is not this utility just it will create therefore create one site there file index dot html but then we have a text editor has opened
  • 00:51:28: let's write in it the simplest site but I think that we all know each other by the way. from please react everyone is familiar with markup html who is familiar with the strains put + I will glad because on this and not be distracted let's start our head right away will install the coding that problems did not arise let's put utf-8 everything is fine i very happy for you
  • 00:51:59: let's call our site well there site number one yes there were a title oh here I Signet so it also snatch body Well, let's make a class in the center great inscription site number one like this
  • 00:52:29: Well, we close our document itself prostretsky wind save here on really downstairs console will be hints how to save as what to change in order To save, click control to enter to exit contour x we have all the file and so if we let's turn here as a site one we expect
  • 00:53:04: see this file ah no for some reason happens why and because we have to add virtual host on our apache to apache knew that when we turn on We will have one site address transfer to the war folder in the air force website one if we contact at site 2 he will transfer us another folder that's how it's done and here we are should you get into our settings
  • 00:53:34: most apache server here and where settings we lie with you in this They said this folder is 7 well, let's see our folder and court yew I turn to root here we are the folder these seven still there apache really there we have already installed and here there are various folders let's do with you talk a little about the configuration
  • 00:54:07: in fact, it is important to us at this stage know that all virtual hosts lie in the sites folder label all sites that are there and then just setting up each site and lies for us to add some kind of virtual host we have to set it up there in this put folder and with the help of this command enable this move and with this we can
  • 00:54:38: turn off and very simple here let's see what the site is available in this folder we are still entering it sites available and here we have two configurations here file that's just 000 default. conf refers to that default site which opens us on our ip and Generally at any address which refers to the stage but we want your own website 1 so let's take this one here default kong
  • 00:55:10: copy in the same folder and give it a yes site name one shortcake if commands for copying can be done using at midnight commander but I recommend to read and submit we can copy the cp command with copy file or folder here let's Here's a tanning bed and take advantage get out of here do everything hands well
  • 00:55:42: look here what is there ls crisis apache2 yes here we once again became and became the network itself patch 2 go to the folder sites available here she went here us 000 default kong that's it i want copy the same folder but to name it differently
  • 00:56:13: the team chains copy look important detail first we have to do out of court because nobody will give us just like that there we want to copy what configuration files only from under court but the thing is what if we now copy this file and variables in the code another then this file will have On this and on this file rights will only near the court she wants the Apaches calm enjoyed freely so add
  • 00:56:44: cp command checkbox n i mean we are now copying files with permissions access so that we have the same right as the source file and where we have the original form here and ype apache2 website available the file is called here 000 default we copy and in the same folder but under site name 1 dot com so
  • 00:57:14: That there does not want to try to uncheck the box department forgot to put yes I struck I was put here
  • 00:57:46: so I did not want to copy now I think everything is clearly copied, let's open this trial file on open our copied file site is one cake discovered that there is a look here at we have pay attention to this Here is a line of document work is just she says to the server and in which folder
  • 00:58:18: our site is what site server here This line is responsible for him and we must uncomment with you what is our length server server name to the domain name of the site is one in the folder War BBB is not html but site 1 is here in fact, all save it
  • 00:58:48: all we leave but the period than all the settings take effect we must necessarily apache restart nothing else happen to be used for this command apache restart service restarted apache open browser I update one site
  • 00:59:21: someone we have all the same but understandable why remember i told you i will be back I told you that we should add configuration file and also include virtual host I will not turn on the virtual host now I I will turn it on with the help of this one teams so i will describe to you the court of hell 2n site yes y us he called site one con they
  • 00:59:56: correctly wrote sorry so here to us Immediately, ubuntu prompts you to restart Please apache reboot I open the browser and we really opens at our site address one that we recorded in this folder please respond now to chat all
  • 01:00:27: whether all up to this stage can be understandable someone confused everything is clear fine here we have created our our see the first virtual host but apache is actually a server that perceives and can interpret and
  • 01:01:02: give html files but we all know perfectly well that the lion's share up sites running on bundled html php correctly and all the data stored in databases I think for it's not a secret to anyone so we have with you still to hijack to our put php interpreter which will perform up to port 80 but will
  • 01:01:32: default open let's deal with you stove installation but here we are all just again all our friends of the sudo team apt-get install stoves at home according to his install install
  • 01:02:02: well, actually let's check if it will work for this let's somehow create in the stove the script in our new website in the folder and check if it will work how to publish the program files on on on your site and 10 call test.php
  • 01:02:36: here so the stove test is the easiest what Well there put the pros who knows the stove I want to withdraw inscription in the center php work here and so revealed
  • 01:03:11: finish saved let's see if it will work us test.php file on our website [applause] Aristide really stove works all great scripts run version oven and by the way yes you can stove info michael blacksmiths are absolutely right at all
  • 01:03:43: version of the stove can be quick look and with the flag in here all the information will be billed about printf bake it good offer I do not argue but time now we are right on edge therefore we will move on, see html creates a static site before the stove fills it with dynamic content where does he get content from the database so we also need a database
  • 01:04:14: install on our site and generally loves install a marine database without problems you can install them but I Here I offer it by the way on the stove on geek brains there are two wonderful to I recommend who have not passed them improve your knowledge practice listening I watched interesting here but the database here are the databases mary data
  • 01:04:45: d.b. this is actually a branch just from Moscow the same syntax absolutely the same no difference between the teams we don’t have a database server and a client database will be on one the server so here are both of these modules we with you should and install do it ships became db server db client so kind would never be mistaken install ladies
  • 01:05:34: according to us, we will occupy this place installation went after installation our database server need set up yes, you need to enter a password for root user for our database data some permission to install there necessary it is all done by the team
  • 01:06:05: which runs after installation here Moscow l-sit your installation so we start with you setting Moscow server that’s how we can come to this now start well thought further need from under the court run Moscow soccer start the installation, see what we have here
  • 01:06:40: will offer to enter the current password and admin work we sometimes drive a change if root password Well, in general it would not seem necessary to change but my experience says that if you are you now do not change to the same can then find out problems with connecting so I recommend choosing yes from this enter the same password again
  • 01:07:10: whether to remove twice anonymous users generally to the database you can keep quiet on him on you need to connect it is not necessary but on your local home server is all equal but working naturally with Can we delete the root by date ? superuser connect remotely that is, not from this local server chipped another can or not by
  • 01:07:40: there is no default at all, but well, that is see this is a matter of security yes but let's leave can let go to connect whether to remove test databases data before deleting restart or privilege table before we restart all databases configured see here we have presentations
  • 01:08:14: come back the next fad here here the team here explain this to the last line here with the help of the team in Moscow login and password can connect to our mysql server let's try to introduce mais que with you al paul root user without use password password we share but here is such an annoying mistake Access is denied
  • 01:08:46: mistake actually to france which all face but this is a feature of the database Maria db the meaning of this would not have arisen just here here in these default databases user is not allowed to connect to database root user we just this will go around adding the necessary permission is possible to get around this one team for this we go from under the court
  • 01:09:16: ships now we are all now we are ores and make the necessary changes date in the database which are contained privileges for users but us interested in user privileges root can then copy me now it's all but I will not reprint here in advance I prepared this for myself like this
  • 01:09:46: here ask to sit on the admin password all done do not forget from under the root of this come out now because super user exit we all try again now exchange connect to the database enter admin password all connected now we have the command line
  • 01:10:17: database but mine hid requests they are usually standard I hope you are familiar with them who do not meet Well, one of them came databases see the database which there is now these three by the way well let's talk about it like led output all we left the command database row set everything is fine agree that through the command line about to manage databases on but
  • 01:10:47: somehow difficult it is necessary to know some teams requests how to see what the choice I think it's no secret that there is software systems database management to visual stoves my admin most hope with she worked if not then show now how this furnace direct exchange is also possible install with which you can manage your databases without command line
  • 01:11:17: but in order to install first we need to know the name of the package itself here she is necessary stove modules which will allow us to interact with interpreter all these three packages we will install install that I want a stove may admin and everything in write one line he will install everything oven pmb string well and bake before the text yes we agree
  • 01:11:50: installation went here we have to go through the setup process first the question will be for which web server we configure stoves batman for apache select all the space ok next stage will ask for password
  • 01:12:20: u need to avoid confusion in the mind everywhere admin password but actually the password for the stove is my cancellations may be the same as root of skin password you can any other come up yes why is it really not clear yes I want to the password is well and the exchange is the same once again so well ok let 's ignore it
  • 01:12:54: everything and from this point on the stove my admin opens on our server for a simple people before the topic admin see everything here you can enter login password to work our databases to configure or don't know the truth in let her mouth now and
  • 01:13:24: there the site let everything go as root we went here so we can manage our databases did but these us in fact it turned out yes that's completely such good already working healthy server will be back to our website she here http site 1 here let's install wordpress here for five minutes
  • 01:13:58: it will spend wordpress probably all familiar with this setup you need it just download and install the folder from us there is a stove there is a database there is everything seemed ready to make a fully functional website you can go the hard way download now on windows wordpress unzip later for types , etc. on server upload files there why not everything can be done much easier to have a console program
  • 01:14:30: per year which allows you to receive upload files over the network dying let's go to the wordpress site browser open wordpress like this I increase so that everyone can see 3 but the second site is well here Download wordpress and select the tor archive. z copy the link to it rip
  • 01:15:05: link and with the help of this one you are utilities in jed we are now Download this archive right away to us at server download downloaded and where is it downloaded and in the folder in which we we are now and we are on home traffic jams dialing team hp to view
  • 01:15:37: look at the contents of the folder here our archive really appeared there is but the archive needs to be unzipped in any case yes one more team since us archive format ator we unzip with using the tor command what options are there yes here all option for interest led you can read the manual here but to us which need first option f which indicate the name of the archive we
  • 01:16:08: must specify which archive to unzip farther we have tor. same z was yes that is, and we have it compressed in addition to the program as zip so we still need zz what well and we want to extract files from archive is correct so we will need checkbox x here are three options that us let's take the team with you compose dial tor x and z, and the name of our archive copying
  • 01:16:47: [applause] so what does not want x maybe xx ztr and in a different order x all programs run see what we have folders hp but these aha
  • 01:17:19: there was a wordpress folder means it lay in our this archive see what in this folder was a wordpress hp before wordpress but here's the standard file set up which are in the wordpress distribution and is move it all to a folder of our site but first let's remove everything we have there before this leg and have done
  • 01:17:49: where ms go to the folder so turn look at the root who forgot war then BBW site 1 and delete there our two files which we made deleted by pressing f8 to delete to delete deleted go out how to move one more team is there who want you introduce it mv command to move files and folders with
  • 01:18:19: using her move to create what we want to move mv I want to move not the folder itself wordpress and the entire contents of this wordpress folder in our to the catalog of our site so m in wordpress slash asterisk such a record will not allow us a folder move the entire contents of the folder to war in the site in one moved
  • 01:18:52: check open browser open Our site is updated. a window that invites us to wordpress set we will increase welcome tra-ta-ta before we start we start you need know the name of the database or user database password in database and we can already do databases through the oven direct exchange here it is us
  • 01:19:23: open let's create a database for our database site to create but let's name will create one site how to add user pass privileges privilege to add an account username let's admin password also admin confirm admin post all privileges yes that is all rights to
  • 01:19:55: this database that is from together all a shot that is, this admin can do it is from this site database one all anything ahead we all created user now we have all data to install our wordpress push forward name we just did Site one username admin password admin everything else is left untouched send see here excuse the file in n conflict is not writable, you can
  • 01:20:29: create file manually and paste there the following text and we already know how file create i copy text this from here I create a file in n config again command no no no no no war in site one in config.php we have no file but automatically create this team I insert here all the contents of which we
  • 01:21:00: suggested saving I go out all the file is we can run the installation here to us prompts you to enter the site name let my site be user but admin password Well, we will not need the admin and mail but 11 dog mail.ru so weak password allow use of password and weak allowed
  • 01:21:30: install wordpress congratulations wordpress is set to enter back to the site here we raised today server look at the villa wordpress can work like you want to change and so on etc., etc. Well, here let's sum small amounts for a little more time than
  • 01:22:01: I expected what we learned with you we learned with you how to break up the drive to install linux correct well through use new linux installer who appeared a month ago we talked about linux file system structure yes what could be there folders for which they are responsible and so on worked in the console linux met
  • 01:22:32: with basic yes with important teams who in this console have learned set apache file manager file packages stove database stove my admin and here webmin we did not have time today install but about him I somehow I will definitely tell you next time simplifies enough server work here but today we managed so how do you talk, we launched ours with you the first server so you can set your questions if someone something
  • 01:23:06: incomprehensible and if understandable and everything is cool you can too write about it in the chat will be glad it see write, I'm waiting for feedback on questions I will answer here is the question whether it is possible to patch with sn configure yes yes of course certificate iso strongly patch is added and for this
  • 01:23:37: there are even special teams that make it all so easy not to climb once again in the config unfortunately it is already a little bit another story today you and I just do not have time to do it Yes, but generally a lot of planning but the second part had time if that I promise everyone to show and to tell is it always lokalkhost will not I have already explained about ip address provider should give not
  • 01:24:07: dynamic ip address to web server work is normal namely static that's because ip server address should be alone same yes because it is necessary on dns servers it is not recorded there they know your domain is exactly on this my eat it should not be changed in any case Well, if everything is clear and static he is always the same
  • 01:24:38: the same address is cheap that's why you can static if we here is the question static ip address here specifically at this virtual machine or do I have anyway iphone server they are by the way for the camera there are several of them at all
  • 01:25:08: static addresses here and this virtually in a virtual machine she located in the local network local it is static but the thing is what is it static within local network ie scrap not unique on the internet in order so that it becomes the uniqueness of the internet i should configure either port forwarding on which there is a static ip well address or use other ways they are but this is a question and
  • 01:25:40: network settings and this is also possible talk for a long time so you all too Thanks for coming, hope to see you soon meetings all goodbye and good luck own experiments on your personal web server bye bye