How to create your own hosting from scratch. How to create your own VPS hosting from scratch and start making money on it (introduction) Create a virtual server

You probably noticed that Lately It has become popular to transfer company servers to a virtual environment, and in this video I propose to consider such virtualization options as VPS and VDS virtual server.

In fact, VDS (Virtual Dedicated Server) and VPS (Virtual Private Server) are the same concept and mean virtual dedicated server.

The principle of creating a virtual server is as follows.

Runs on a physical server operating system, which helps create these same virtual servers, which is called a hypervisor. It allows you to completely isolate virtual servers from each other. Thus, the operation of one VPS cannot affect the operation of other servers; they cannot access files or network packets and the contents of each other's RAM. As a result, you can create any number of virtual servers on one physical machine, as far as the hardware allows. Each such server will have its own operating system and settings. This way, it will appear that you are working on a physical server, but connecting to it remotely.

You can implement this virtualization system either on your physical server or using a cloud service.

Advantages of moving to the cloud:

Cost optimization. There is no need to spend money on purchasing and installing expensive equipment. Since renting a VPS allows you to avoid large one-time costs.

Saving on resources. According to statistics, resources of own equipment are rarely used by more than 50%. At the same time, a virtual server can be created with exactly the parameters that are needed today. You can customize the number of cores, disk capacity and RAM, so as not to pay for redundant configuration.

Operational organization of work. You will spend from a week to a month to buy and install your server. Selecting equipment, payment, delivery, connection, configuration - all this takes a lot of time. When creating a virtual server, you only need 5 minutes and the VPS, with the required configuration, is ready to go.

Easy scaling of resources - you can increase or decrease VPS parameters in just a couple of minutes. You pay only for those resources that you need here and now.

Reliable storage of information. Since the data is stored in a mirrored Raid array, the information is duplicated on two independent media and if one of them fails, your data will not be lost.

ROOT access. You are provided with full admin to manage your VPS. You can install any software, operating systems and change any settings.

Flaws:

The need for a constant stable Internet connection, since if the Internet is disconnected, all work will be paralyzed.

Subscription fee – you will have to pay every month subscription fee for equipment rental. But, here it’s up to you to decide whether this is more of an advantage or a disadvantage, since the configurations may be different, and therefore the cost of subscription service.

In this video we will create a virtual server through a cloud service

As you can see, on home page The service immediately gives you the opportunity to specify the server characteristics you need through the configurator. Thanks to this, you can immediately see how much it will cost to rent this server per month or per day.

You can also test the operation of a virtual server for free; to do this, just leave a request to connect a test virtual server. As you can see, the test period is quite short, for individuals 1 day, for legal entities 3 days. However, the developers accommodated me and are ready to provide 5 days of free testing for my subscribers. To do this, you just need to inform the manager, who will call you back after sending the application, that you are a subscriber to the “IT Training Center”

Well, now let's see how it all works.

We log into the site using our registration data. At the top of the site you can see how much money you have in your account. If you are working in test mode, then you will be provided with a server with certain settings, but I will not consider a test one, but the operation of the service in full mode.

Virtual dedicated server configurationVPS (VDS).

In your personal account, go to the section Virtual servers\Create new\Server name\FTP server.

Templates - I'm interested Windows Server 2016 R2. Next, we select the desired hardware configuration; it is worth noting that for various configurations rental prices will vary, so choose for yourself best option taking into account productivity and rental costs.

The number of cores, the amount of RAM, HDD space and hardware, everything is clear with this.

General (not guaranteed) 100 MB/s - provided here maximum speed The Internet channel is 100 Mb/s, but it will be distributed between several servers, so if the Internet channel is loaded, it is not guaranteed that you will receive a speed of 100 Mb/s.

Dedicated 10, 50, 100 Mbps guarantees that you will receive this Internet connection speed, since a dedicated Internet channel will be created for you.

Backup– daily backup server data

Additional IP – if you want to connect an additional network card with an external IP address.

Private LAN – allows you to organize a network between servers without access to the Internet, using internal IP addresses. At the same time, the traffic is completely isolated from other users.

Extended SLA – Extended warranty. NeoServer not only promises 99.99% virtual server availability, but also pays downtime 10 times.

In any case, during the work process, we will be able to change these settings if the need arises.

Next, click the “Purchase” button. Despite the fact that I have less money in my account than the cost of the server I assembled, I can still buy it, since this cost is per month. In the process of working with a virtual server, the cost of its rental will be charged not once a month, but every day, i.e. total cost server divided by 30, this will be the rental price for each day of use. And since I have enough money to pay for one day of server rental, I can buy it J

The process of creating a virtual dedicated server has begun.

After creating the VPS, we have options for connecting to the server, via the web console or via RDP remote desktop.

It should be noted that the presence of a web console is a very important factor when choosing a VPS. It will allow you to connect to the server via Personal Area, even if the OS is frozen or if due to incorrect network settings VPS has become unavailable.

There is also a snapshot function. It is recommended to create a snapshot before making any significant changes to the server. So that in case of negative consequences, you can return to the moment the photo was taken.

We connect to the virtual server and see that it is no different from a real physical machine, with the same characteristics that we specified at the stage of creating the virtual server.

I’m not very happy with the server slowdown, so I’ll add another gigabyte of RAM to more comfortably demonstrate the practical part of setting up the server (Turn off the VPS server \ RAM 2 GB\Save\Enable VPS).

Now let's set up our server as an FTP server to see how we can use a virtual server in a real world situation.

I will not go into details of the FTP technology itself, since I plan to make a separate video on this topic, so I will configure everything as quickly as possible (Server Manager\Management\Add roles and components\Next\Installing roles and components\Select our server\Next\ Web server IIS\Next\Next\FTP server\Next\Install\Close).

Let's create a user to access FTP server (Tools\Computer Management\ Local users\Users\RMB\New user\User12345)

Let's create a folder for FTP access (C:\inetpub\ftproot\TestFTP)

Setting up FTP access ( Server Manager\Tools\Service ManagerIIS\Sites\AddFTP site\Name\Path\NoSSL\Next\Authentication\Normal\Specified Users\User12345\Reading\Done)

Let's connect ( Conductor \ftp://address server \ Enter login and password)

Hello friends.

In this article we will install local server to your computer for subsequent development and configuration of sites on it.

To do this, we will use a program called Denwer. Its installation is simple and does not require any technical knowledge. Moreover, the installation process is accompanied by prompts.

How to install a local server and whether it is needed at all, read on. Let's start by looking at the importance of a local server.

Do I need a local server?

For beginners, I’ll start by defining the concept of “local server” - this is a server (hosting) that is located on your computer (not on the Internet) and allows you to create and configure websites on it.

I believe that it is necessary to create and further configure the site on a local server, so that then in one fell swoop you can place a fully functional site with all the settings on the Internet. And then immediately fill it with content.

This is what truly professionals in website creation do. Even if we look at people who constantly work with creating websites on various engines, we will see that almost every one of them first installs the site on a local server, then configures it, and only then transfers it to real hosting.

As an example, I’ll show you the menu from Sergei Patin’s course "Joomla 3 - professional website in one day". Look at the sequence in which the website is created.

As you can see, from the very beginning the site is installed locally, configured, and at the end the completely finished resource is transferred to hosting.

Placing a website on the Internet and then setting it up when you need to promote it is unwise.

What if you already have a website? Do you need a local server?

Let's imagine the situation that you already have a website and you are a very avid techie, that is, you like to always delve into all sorts of technical issues and constantly experiment with something.

So, you already have a website and there are already some visitors on it. Although not a large number, they exist. Put yourself in their shoes.

You go to a website and constantly see that the owner of the site or blog is constantly changing something. It changes the location of blocks on the site, the structure, and sometimes the design is new every day. Would you like this? So visitors wouldn’t really like this situation.

Developing, setting up websites, as well as creating designs on a website that is already posted on the Internet is, at a minimum, not professional. Not to mention the fact that it has a very adverse effect on his development and approval in the eyes of search engines and your audience.

Therefore, you need to do all such things on your local computer.

Now we will start installing it, after which you can install it on local computer your website and do whatever you want with it. Visitors will not see these frauds, because... This is your personal computer and no one has access to it. And after you bring everything to its final state, you can easily transfer it in a completely finished form to a real website.

By the way, I also talk about the importance of a local server when creating a blog in my mind map “Plan for creating a quality blog from Konstantin Khmelev,” which you can get by leaving your 1st comment.

Let's move on to the installation process itself.

Install a local server on your computer

The local server is a program. Therefore, you need to download it. We will use the Denwer web server for this.

Go to the official website program and click on the big button.


After clicking, you are prompted to select the program version. Choosing a version old PHP 5.2 and press the button Download.


In the next window we need to enter the data where the link to download Denwer will be sent. Enter your real data and click on the “Get download link” button.


After clicking the button, you will immediately receive an email with a link to download the program. The sender and subject lines of the letter will be as follows (see screenshot below).


After downloading, in the location where you saved the program you will see an installer that will look like this.

To start installing the local server, run the installer.


It asks us if we want to install basic package? We agree.


The unarchiving of the data will begin and will proceed very quickly.

After unpacking the data, the installation of the local server will begin, which will be carried out on the command line. Immediately when it starts, we will be asked to close the browser.


Automatically, when the command line appears, the browser will open with a message that you must close the browser to continue or cancel the installation.


You should also close other browsers if the command line installation will not continue.

After closing all Internet browsers, installation will continue. You just need to follow the prompts that the command line gives.

To continue the installation, press Enter.


I'll install it in another place. In my case it's a disk E folder host.



In the next step, press Enter again.


The next step is to select a virtual disk letter. By default, the program prompts you to select drive Z, since this letter is the last in the English alphabet and it is unlikely that any drive is occupied by it.

I'll leave it like that. You can enter another letter, but make sure that no drive is occupied by it.

After selecting and entering the letter, press Enter to continue installing the local server.



After copying is complete, you must select the Denwer launch option.

There are 2 launch modes, but the program itself recommends choosing option 1. That’s what we do. Enter the number 1 into the command line and press Enter.


  • launch;
  • stops;
  • reboot.

We need these labels. Therefore, enter the letter Y and press Enter.


This was the last step in installing the local server, after which the browser will automatically open with the message “Denwer installed successfully”, and it will also be written that Denwer works with the same ports as Skype.

Therefore, if you have Skype installed, then do what is written in the browser window.


It will also create the desktop shortcuts that we wanted so much.

  1. Start Denwer - start Denver;
  2. Stop Denwer - stop;

All. Our local server is installed. Now all that's left to do is check it out a little. Run it and see if ours is really virtual disk, which will act as a local server, will start.

Before we launch, let's go to the directory where we installed Denver and see what's there.

Since I installed on drive E in the host folder, now there should be such a folder on my drive.


The way it is. And inside the folder there should be the Denver files themselves. We go inside the folder, where we should see the following picture.


There are files. This means everything was successfully copied during installation.

Now let's check whether Denwer itself starts. Let's use the shortcut to launch.

After launching the shortcut, 2 will flash quickly command lines. When they disappear, 2 shortcuts will appear on the taskbar.

If such shortcuts appear, then Denwer is running. A virtual disk with the letter Z should also appear in my case. In your case, with the letter you assigned. Also, this disk should be named similarly to the disk in which you installed Denver itself.


As you can see, there is drive "E", which I installed in, as well as drive "Z", which appeared after launching Denver. They have the same names. Both discs are titled " Local disk". Only the letters are different.

If we go to the virtual disk (Z), we should see the same files and folders in Denver that we looked at earlier.


All friends. This completes the installation of the local server. Now you can start creating a website on it and do any manipulations with the site.

In the next article I will show. You will also find a detailed article with images and a video tutorial there.

By the way, about the video lesson. If someone doesn’t understand something from the text version, then here’s a video lesson that I specially recorded for you.

With this I will say goodbye to you. I look forward to your comments and any ideas for new blog articles. If something doesn’t work out or you have any questions, write them in the comments.

All the best.

Best regards, Konstantin Khmelev.

Virtual servers: if you create a server in local network and want to make it available on the Internet, a virtual server can implement this service and provide it to users. At the same time, a virtual server allows you to maintain the security of your local network, since other services will continue to be invisible from the Internet.

A virtual server can be used to configure public services on your local network, such as HTTP, FTP, DNS, POP3/SMTP and Telnet. Different services use different service ports. Port 80 is used by the HTTP service, port 21 by FTP, port 25 by SMTP, and port 110 by POP3. Before setting up, check the service port number.

Setting example

For example, a personal website was created on my home PC (IP address: 192.168.0.100). I want my friends to be able to visit my site over the Internet.

The PC is connected to the router with WAN IP-address 218.18.232.154.

LAN WAN Router: 218.18.232.154

Assign a static IP address to the computer, for example 192.168.0.100

Follow these steps:

Note: The setup is carried out using the Archer C9 model as an example.

Step 1

Log in to the Archer C9 web interface. Read the article How to login to the web interfaceWi- Fi router , for instructions on how to log into the router's web interface.

Step 2

Click Advanced (Additional settings) at the top right, then on the left side select NAT Forwarding (NAT forwarding) -> Virtual Servers(Virtual servers) -> Add(Add).

Step 3

Click View Existing Services(View existing services) and select HTTP External port(external port), internal port(internal port) and protocol(protocol) will be filled in automatically. Enter the computer address 192.168.0.100 in the field Internal IP(internal IP address).

2. If the service you want to specify is not listed in the Service Type (list of services), then you can enter the appropriate parameters manually. You need to check the port number that the service requires.

3. You can add multiple virtual server rules if you want to provide multiple services in the router. Please remember that external ports should not be repeated (duplicated).

Step 4:

To visit your website, Internet users can log in to http:// WAN IP(in this example: http:// 218.18.232.154).

Note: Your settings will not take effect if the NAT function is disabled. Go to page Advanced(Additional settings) > System Tools(System Tools)> System Parameters(System Settings) to enable NAT.

1. WAN IP address must be public (white/external). If WAN IP is assigned dynamically by your ISP, it is recommended to register and use Domain name for WAN IP (see setting account DDNS service). In the future you will be able to dial address bar http:// domain name, to visit the website.

If you are not sure how to configure static IP (static IP) on the device, you can configure (address reservation) according to the instructions How to configure address reservation on TP-Link Wi-Fi routers (new blue user interface), so one and the same IP address will always be assigned to your device.

2. If you changed the external port from the default, you should use http:// WAN IP: External port or http:// domain name: External port to visit the website.

3. Make sure the server is accessible from the internal network. You can check if you can access this server within your local network. If you cannot access the server on your local network, check your server settings.

Find out more about each function and settings, go to the section DOWNLOADS on your website to download your product manual.

Some time ago, the idea came up to test the prospects of developing a site on ASP.Net, oriented to work in a Linux environment. However, it was decided immediately that the site would work in an environment on a Linux host; all that remained was to decide on the programming language: ASP.NET 2 in conjunction with the power of Mono, or PHP. Options for testing various VPS, even if provided free of charge for a short period of time by hosting providers, disappeared immediately, because If the experiment was successful, sooner or later a local VPS server would be required in any case.

The virtual machine for creating a home virtual server was the VirtualBox program - for the reasons that a virtual machine may be needed only once, commercial options were not immediately considered, but among free programs– only this one is simple enough to configure and can fully support guest operating systems of the Linux family. Also, as a result of an analysis of VPS offers on the Internet, several of the most common and Mono-compatible operating systems pre-installed by hosting providers were identified.

So, the tools used:

Install VirtualBox, launch and create a virtual machine with the required configuration. While creating virtual machine I left all the recommended settings except for the available memory - it was reduced to 128 MB, and the virtual size hard drive- increased to 4 GB. We launch the virtual machine and mount the image with the Debian 5 operating system.

After downloading, select from the installation menu Install, because We don't need a graphical installation. Select the installation language, I recommend English (if you are not comfortable with English at all, then Russian), then select the location => other => Europe Russian Federation , and the keyboard layout for input, here I strongly advise you to select English for the USA. During installation, you are prompted to enter the machine name for the network, I entered MyVPS, and the domain name of which it is included this computer

(you don't have to enter anything here). Next, we suggest choosing a time zone and a method for partitioning the hard drive. I chose the default method; in general, it was not particularly important for me. We agree with the proposal to write changes to the disk and confirm its layout. We are waiting for the system installation to complete... During the installation process, you are asked for a password for the administrator account, a user login and a password. Next, you are asked to select the address of the nearest repository and proxy server settings for Internet access. If you are not using a proxy server, you do not need to enter anything. The installer will now connect to the repository you selected, ask for information about available software, and download the packages needed to proceed with the installation. After this, the system kernel will be configured and a menu for selecting what to install will appear. software . Uncheck the item Desktop environment (a desktop is not needed on the VPS), be sure to leave a checkmark on the item Standard system , select the remaining items as desired. Upon completion of the installation, the question will be asked: is it possible to install the GRUB operating system boot loader as the main one, select Yes . After this, you will be prompted to remove the disk and reboot. Unmount the disk image and click

Continue

to reboot the virtual machine. Congratulations! This completes the OS installation.

So, the virtual machine is rebooted. You are prompted to enter your login. Enter root, then you will be asked for a password, enter that too. Now you need to install SSH. To do this, enter the command Apt-get install ssh

After installation, turn off the virtual machine. Since the operating system is used by a single user, to do this, enter the command

Now we need to configure our virtual machine for access via SSH, and also configure access to the future web server on port 80. This can be done in two ways.

    Close all VirtualBox windows. Go to folder C:\Users\%username%\.VirtualBox\Machines on Windows 7 and Vista or to a folder C:\Documents and Settings\%username%\.VirtualBox\Machines, if you have Windows XP.

    Open the folder of the virtual machine you created, find in it the file with the name of your virtual machine. In my case it's MyVPS.xml open it and add it to the section ExtraData following lines






    Close VirtualBox. Open the console. If you have Windows go to the folder C:\Program Files\Sun\VirtualBox.

    Enter the following commands in the console
    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80
    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 80
    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP
    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222

    VBoxManage setextradata "%mashine_name%" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP

where %mashine_name% is the name of your virtual machine. Launch VirtualBox and turn on the virtual machine. If now you get an error about the impossibility of turning on, close everything and configure the virtual machine again. You probably made a mistake when entering commands. If you changed the settings in xml file

, check the added entries for errors; if in the console, enter the commands again. After starting the virtual machine, run the Putty program, if you are on Windows, write in the Host field localhost 2222 , in the Port field we set the value . Click Open

, we agree to accept the SSL key. If you are on Linux, enter

Ssh -l %user_name% -p2222 localhost

Enter your login (in Putty) and password. For driving file system After starting the virtual machine, run the Putty program, if you are on Windows, write in the Host field You can use the WinSCP program. You will need to enter 2222 , set the Port value to

The server is ready in a minimal configuration. Now you can install Apache, nginx, MySQL, etc. Please note that the web server must be running on port 80. If you want to use any other port, change the virtual machine settings using VBoxManage.

In the third article of the series about organizing a hosting business, we will tell you how to start selling VPS using ISPsystem products. The first material contained step by step instructions by , the second - by .

Virtual server hosting (VPS/VDS) is one of the types of business on the Internet that does not require capital investments in infrastructure. Compared to shared hosting, VPS gives clients greater stability and therefore costs more.

Important! We recommend starting not with technical implementation, but with the business model and legal side of the issue. Define target audience and ways to attract it, develop a pricing policy that is beneficial for yourself and your clients. Learn the legal and accounting framework. Only after this do you proceed to implement the plan.

What you need to get started

A virtual server (Virtual Private Server, VPS) works the same as a real physical server. In this case, several independent virtual servers can run on one physical server.

From a business point of view, VPS hosting is different from virtual hosting equipment requirements. From the user's point of view, VPS hosting has guaranteed resources (disk, memory, processor), dedicated IP addresses, flexible system configuration and the ability to optimize resources.

While shared hosting is suitable for small websites, VPS is usually used to host online stores and corporate portals.

VPS hosting can be started without your own hardware. For this you will need:

  1. rented dedicated server with support for hardware virtualization (one or more),
  2. subnet of IPv4 addresses,
  3. agreement with payment system,
  4. software for creating VPS,
  5. billing platform,
  6. website for selling services.

Rent a dedicated server with support for hardware virtualization and a subnet of IPv4 addresses from one of . Enter into an agreement with the payment system and domain registrar.

equipment requirements

To start providing VPS services, you will need one dedicated server with hardware virtualization support. For example, on Intel processor Xeon E5. Server E5-2630v2\64GB RAM will allow you to run up to 55 VPS. You need as much RAM as will be allocated to the VPS.

Each VPS is allocated a certain number of IP addresses. Therefore, you will need your own subnet of IPv4 addresses or several different IPv4 addresses. Additional addresses can also be rented from your hosting provider.

Determine rates

When choosing a VPS provider, clients first of all pay attention to specifications and cost of services. The price and quality of services must meet their needs.

Tariff plans are created when you first set up the software, so think about their content now. When drawing up tariffs, determine your target audience, study competitors' offers and take into account your costs.

For example, a tariff grid might look like this:

Number of CPU cores (Piece)

Disk space (GB)

Incoming traffic (Mbit/s)

Outgoing traffic (Mbit/s)

BILLmanager allows you to flexibly customize interaction with the client. You can set the period for debiting funds, the minimum order period, and the late fee.

Required Software

To sell VPS you need to install three panels: VMmanager, BILLmanager, IPmanager.

Setting up BILLmanager

Creation of tariffs

Details of creating tariffs are given in the article Connecting to VMmanager. However, in its basic form the sequence is as follows:

  1. In BILLmanager go to the section Products - Tariff plans.
  2. Click Create and select Virtual server - VMmanager.
  3. Fill in the fields in accordance with the previously defined tariffs. Click Complete.
  4. Return to menu Tariff plans. Select the created tariff. Click on the button Handlers.
  5. Enable the tariff for the server with VMmanager.

Checking the software operation

Try registering from the site, logging into your personal account, ordering and purchasing the service as a client. If you have any questions, please refer to the documentation or write to the ISPsystem customer service department.

Start selling

Advice: you can obtain materials for promotional campaigns from the registrar with whom you entered into an agreement. Typically, images and text describing services are placed in the section affiliate program. For example, Reg.ru has prepared such materials.