How to set up virtual servers on TP-Link Wi-Fi routers (new blue web interface). Installing a local server on your computer Installing a local server on your computer

Hello, dear readers of Habr. With this material we begin a series of publications on how to build VPS hosting from scratch based on the RUVDS White Label API.

In this introductory publication, we will tell you what you need to do first in order to start making your first profit from your own VPS hosting as soon as possible, how to do it relatively quickly and how feasible and profitable it is. If you decide to create your own VPS hosting from scratch, but you do not have your own infrastructure or do not have the funds and time to create it, welcome to cat.

Do you need a website


To organize your own VPS service, you will first need 2 things - a website on which you will offer VPS server rental services and a service provider that will provide you with favorable partner conditions for these purposes, its infrastructure and a reliable API with extensive capabilities. What is an API? This is an interface using which you can provide your clients with all the same server management capabilities that your service provider provides to its clients.

Integrating a website with your VPS provider via API will be much cheaper and faster than creating your own cloud infrastructure from scratch, since in this case it “takes care of” many issues: you don’t need to worry about the availability of a sufficient amount of resources from the provider, , how to organize a wide and fault-tolerant channel for accessing the Internet from virtual servers, how to collect and store data on the use of resources by servers, and so on.

Now about the site. There can be many options here, we will list the most common:

  • you are the owner of a website that offers related services (domain verification/registration, DNS server rental, remote server administration).
  • you create your website from scratch using a popular CMS and plugins for it.
  • you order a website from a web studio
  • enter your option
The first is the best option, since in order to add new service renting VPS servers, you will need very few modifications: you won’t have to write many of the things listed below from scratch. When creating your website from scratch, launch dates may vary significantly the worst side. You will need to implement all the components listed below yourself (or use the implementations third party developers, having previously tested and adapted them to your project). We recommend using the third option only if you lack the necessary knowledge on creating websites or if it is impossible to make your website the way you want.

Let's start


What should be implemented on this site?

Registration, user authentication/authorization, password recovery, feedback form.

All hosting providers without exception have this. Your future client must be able to register, recover his password if he loses it, have Personal Area on the website with up-to-date information about its balance, purchased servers, etc. Also, he must be given the opportunity to report the problem to technical support. In order to avoid mass registration of “fake” accounts, we recommend not neglecting additional security measures, such as captcha on forms, and also maintaining the maximum amount of available information about the user, which can help if any violations are detected on his part. In this case, there are many ready-made solutions that require minor modifications. If you plan to create your website based on a CMS, then the above-described functionality is either implemented to some extent or can be easily connected using plugins.

Client personal data management

It should be implemented to some extent, but you can do without it. This functionality does not block the launch of your service.

Client server management

What should be on a given page of your site depends on how much you want to use the available functionality of your service provider and how much control over the server you will give your client. For example, you can create a dedicated server for him after depositing the required amount into the balance and his written request to technical support, or you can provide him with a full-fledged configurator for fine tuning characteristics of the server, as well as interfaces for changing the configuration during operation, obtaining server load statistics, various possibilities like reinstalling the OS and so on. The launch speed of your VPS hosting will vary significantly depending on the option chosen. We will consider this issue in more detail in the following articles from this series.

Possibility of using a trial period

Obviously, for the initial promotion of your new VPS hosting service, you will need to implement the possibility of using a test period. This is necessary so that your client can decide for himself whether the price you advertise for VPS rental corresponds to the quality of the services you provide. What should you consider when implementing? First of all, you need to select the number of days. You should not make the test period too long - clients who simply want to get a free server for a certain period will register on your service, and after the test period ends, they will register a new account and try to use the test period again. In order to protect you to some extent from such clients, you definitely need to learn how to identify them. This is especially important on initial stage development of your service, as because of each such client you will receive less potential profit. You should also take into account that a long test period will not be very beneficial for you, since there is no test period on your affiliate account, to which all the servers you create are linked.

Billing

How will clients top up their balance and buy servers? Of course, we will need another very important component, billing. What do we include in the concept of “billing”? Of course, it includes creating/editing current tariffs, interfaces for accepting customer payments, internal payment processing mechanisms, creating promotions/discounts, and monitoring tools.

You should approach the implementation of your own or the integration of third-party billing into your project especially responsibly, because the ability to purchase a VPS server on your website (read your first money) directly depends on the performance of this component. To quickly start accepting money from the most popular payment systems, we recommend that you use payment aggregators. Why? Firstly, integrating with one aggregator is much faster and easier than integrating with each of the payment systems it provides. This is due to the fact that each payment system your own interaction protocol, which needs to be correctly implemented and work with it unified within your system, which is extremely labor-intensive. Secondly, you have one interface that provides most of the necessary functionality for working with customer payments - this is the aggregator’s personal account. Of course, you will have to pay an additional commission for all this, but in our opinion, this solution is optimal when creating your own VPS service.

Of course, before integrating with a payment aggregator, your site must meet certain requirements. As an example, we can cite the requirements of the payment aggregator paymaster:

  • the site must be completely filled with information and function;
  • the site must consist of more than one page;
  • the website must contain information about the goods and services sold, as well as the cost of these goods and services;
  • the site should not be hosted on free hosting;
  • goods and services offered on the site must not contradict the current legislation of the Russian Federation and international law;

Also, it is worth paying attention to the fact that the list of payment systems is usually much wider if you enter into an agreement as a legal entity. In some cases, connecting certain payment systems may take quite a long time, since your site must meet the requirements of each payment system provided by the aggregator, and the verification procedure is carried out on the side of the payment system.

Financial aspect


We have come to one of the most important aspects (if not the most important) - financial. Working with your VPS service provider should be profitable. Let's consider why it is profitable to organize a VPS server rental service by choosing RUVDS provider as a service provider.

Let's take the most popular VPS configurations based on the operating system Windows Server 2012 R2 and present some data that we obtained when analyzing the VPS services market in Russia as of February 2016:


Configuration

1

2

3

4

5

Number of processors

1

2

4

6

8

Volume random access memory, GB

1

2

4

8

16

Disk capacity, GB, HDD

20

40

120

300

600

Number of IPv4 addresses

1

1

1

1

1

Current configuration price

When paying monthly

300 rub.

600 rub.

1400 rub.

2980 rub.

5720 rub.

When paying annually

2880 rub.

5760 rub.

13440 rub.

RUB 28,608

54912 rub.

In order to estimate your potential earnings, we present the gain in price of configurations compared to the average price of competitors:

Also, do not forget that we have expenses for paying commissions for transfers and withdrawals to payment systems.

The current discount for creating servers using the API is 10% .
How to estimate the potential earnings from one server of a given configuration, purchased for a month? You can use the following formula:
Earnings = Current. price RUVDS * 10% + Difference with the average configuration - Expenses for payment of commissions.

Calculation example for configuration 3:

Earnings = 1400 * 0.1 + 794 (rounded down) -240 = 694 rubles.

This is earnings from one server. When your clients purchase 25-30 servers of this configuration, you will earn an amount of earnings already in 20 thousand rubles per month.

In the following articles we will talk in detail about the capabilities of the RUVDS White Label API, and discuss how to select optimal tariffs for your VPS hosting and under what conditions you can earn money.

This document will help you create your first virtual server on the platform of the cloud hosting provider Clodo.ru

Creating a virtual server (Virtual Server)

Creating a virtual server on the Clodo.ru cloud hosting platform will take you a few minutes of your time. The procedure is simple and requires virtually no description. However, we have created this guide so that the process of creating a VPS does not raise any questions for you.

If you already have a virtual server, then in order to create a virtual server, you need to home page control panel, click on the “Create virtual server” button. If you do not have a single virtual server, then when you go to the “My Resources” section, you will be automatically redirected to the page for selecting a data center to install the server.

After clicking on the “Create a virtual server” button, you will be offered a list of data centers in which you can create a virtual server. After selecting the required DC, click on the “Go to next step” button.

On the page where you select the type of virtual server to create, you will see two options. For the purposes of this article, we are looking at installing a classic virtual server, so we must make the appropriate choice - Virtual Server.

The next step in creating a virtual server is to select the operating system that will be installed on the created VPS. Cloud hosting Clodo.ru provides its clients with a large selection of Linux-based operating systems. Each of our clients will find exactly the one with which it is most convenient for them to work. At the time of writing, cloud hosting Clodo.ru provides the ability to install the following operating systems:

  • Debian
  • Ubuntu
  • CentOS
  • OpenSuse
  • Fedora
  • Arch Linux
  • Gentoo

You can also choose to install a system with an installed software package, called a Preset.

In step No. 4, you need to select server parameters, such as the amount of RAM and disk storage, and also enter the name of the server, which will be displayed in the list of servers in the future. Using the designer presented at this step, you can create a solution that is right for you. Don’t be afraid to specify the parameters incorrectly; in the future you can change them on a running virtual server.

If you want to configure the server more precisely, click on the “Advanced settings” button. In this article, advanced settings will not be considered.

In the next step you are asked to select Additional services, such as: installation of the ISP manager server control panel, additional IP addresses and plan technical support server. Please note that when the technical support plan changes, its description also changes. Carefully study the presented service levels and choose the most suitable one for you.

The next step is the final one. Check the parameters of the virtual server you are creating again.

After clicking on the “Create a virtual server” button, you will be taken to a page with a list of virtual servers.

Installing a virtual server takes no more than 5 minutes.

Congratulations! You have become the owner of a virtual server on Clodo!

Terms of use of the document

The material presented on this page can be used by you at your own discretion. Copying and distribution of the provided material is permitted without changing the content and without prior notification to the administration of Clodo.ru.

We will be grateful for your reports of errors in the provided documentation and for suggestions for improving the documentation. For these questions please contact: [email protected]. When contacting, be sure to include the URL of the publication.

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 has become VirtualBox program- due to the fact that a virtual machine may be needed only for one time, commercial options were not considered immediately, 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 of 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 operating system Debian 5.

After downloading, select from the installation menu Install, because graphical installation We don't need it. 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

The program will analyze the dependencies and ask for confirmation to download and install the package ssh and the packages it depends on.

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, in the Port field we set the value 2222 . 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 You can use the WinSCP program. You will need to enter localhost, set the Port value to 2222 , enter your login and password.

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.

When creating Internet resources and much more, you cannot do without a special virtual server on your personal computer.

About VDS server on your local computer

Introduction

VDS server - This special program, which can emulate the operation of a similar server, like many hosting providers. Of course, a virtual server is incredibly in demand these days.

The advantages of using a VDS server on your own computer are obvious, since it is possible to create sites, check them, and adjust them in a virtual environment, with the same capabilities as if you had purchased a full-fledged paid hosting.

Top 5 hostings in our rating

Advantages of using a VDS server on your own personal computer

From the examples below, you can see the quite obvious advantages of using a virtual server on your own personal computer.

For example, you started creating your own website, you learned normally html language, css styles. However, what to do when there is a need to test third-party add-ons and various scripts? This is precisely why a virtual server was invented, allowing you to view and thoroughly test the operation of a web resource without any harm to new downloaded extensions.

In addition to testing scripts or other various add-ons web resource, you may also want to adjust their work in the future, or change it to suit yourself. This is exactly what a modern VDS server is perfect for.

In addition to all of the above, the VDS server is comfortable to use if you change templates for the most popular CMS, since you can see absolutely any changes online.

Denwer

Today there are a lot of different programs that can easily create a VPS server on a regular user’s computer. Denver software is rightfully considered the most popular of all applications by many web resource developers. This application is capable of creating an Apache server directly on your hard drive personal computer, and in just a couple of minutes.

In addition, this server is absolutely free and does not require any special settings to operate.


“How to create a virtual server?” – frequently asked question problem that arises for many users who are encountering hosting for the first time. In the article we will continue to look at what a VPS (VDS) is, how to choose it correctly, configure this type of hosting to suit the needs of your project, and whether it is possible to create a regular Virtual Private Server yourself, or whether you need to rent it.

We found out what a virtual server is, when it is worth purchasing it, and which operating system (Linux or Windows) is better to use.

Apart from traditional website hosting, virtual servers can be used for IP telephony, virtual routers and switches, VPN or proxies, terminal servers with traditional office programs For remote access from employee computers.

Technology information

Most often, when developing websites, the PHP programming language is used, databases MySQL data and web servers Apache and Nginx (they work independently or in combination). This set programs are also often called LAMP (L inux- A pache- M ySQL- P HP) or LEMP (L inux- N ginx- M ySQL- P HP).

Of course, other technology stacks are also used; sites can be written in other programming languages ​​(Python, Ruby, NodeJS) and use other databases (PostgreSQL, noSQL), as well as supporting software. But, since such solutions are less common, we will not consider them. Let's take a closer look at the selection and initial configuration of a VPS for hosting websites in the PHP language and corporate email.

Selecting a tariff plan

It won't be here detailed guide, how to choose the required tariff, since resources are selected individually in each case. The amount of resources will depend on the number of sites on the server used by the CMS, the need to use additional programs and so on.

The only thing that is calculated quite accurately is disk space. Check how much space sites and mail take up, add 7-10 GB to this and get the minimum required disk space. The fact is that on the VPS you need to allocate additional space for installing the operating system and control panel, which is also taken into account in the total disk space.

Operating system and control panel

There is a whole family of operating systems based on the Linux kernel, including both server and desktop options. The most popular server operating systems: CentOS, Debian, Ubuntu Server.

If you need a very stable system, CentOS is your choice. Stable and secure system, but with the ability to upgrade to the latest software versions if necessary - this is Debian. Ubuntu Server is an OS that keeps up with the times, delivering latest versions programs, which is why they may not work perfectly.

The server control panel is a certain script, or a set of scripts, that allows you to conveniently manage VPS in graphical interface. Usually the graphic part is available in the browser at a specific address.

The choice of PU is largely influenced by the subjective experience of use, that is, one panel will seem more convenient to some users, and another to others. If you find it difficult to choose, you can test the interface of various products in a demo version on the developers' websites and decide what suits you best. Also, the choice of PUs is closely related to the operating system, since they usually support a limited list of OSes. And another important factor in choosing a panel is the availability of the tools you need or the ability to quickly install them.

Of course, you can skip the control panel at all and configure the virtual server via command line, but this method will require sufficient technical knowledge. Most PUs come bundled with a set of basic popular software needed to quickly deploy your websites. These are a web server, PHP, databases, FTP, mail and DNS server. All packages are already optimally configured for immediate start of working with the server.

We recommend using VPS with a control panel and provide free full technical support for them. For servers without a panel, technical support will be limited. Creating a virtual server is an incredibly expensive process, and for full-fledged hosting, there is a platform where you can host your resource, and you don’t have to create it from scratch.

For installation on our VPS and dedicated servers, we offer the following panels: cPanel/WHM (from $13.95/month), ISPmanager 5 Lite ($4/month), Plesk 17 (from $10/month), Centos Web Panel (free ), and it is also possible to install a virtual Bitrix environment.
We will look at all these control panels in more detail in the next part.