Good day to you!
Webmin and Virtualmin enable you to deploy your own hosting on Apache web-server in about 30 minutes. This method is worth applying, if you need to create hosting for multiple sites with low traffic. If you plan to make one or several sites with heavy traffic, it’s better to use Nginx; find additional information about it in our articles:
Choosing a server and Linux distro:
If you already have a server with Linux, installed on it – just skip this clause.
For a small hosting, any inexpensive virtual server will be suitable, for example, DigitalOcean for 5$ per month (follow this link and get 10$ for registration without any additional conditions). DigitalOcean server will be ready in 3-5 minutes upon registration, and you will be able to move on.
And now, regarding Linux distro: if you are used to some specific distro – use it. If you have no preferences – then, it’s recommended to choose CentOS 6, it’s simple, stable and convenient. Many of web-hostings operate on this very CentOS distro.
If your server has 3 or less gigabytes of random access memory, then use x32 distro, if there is more memory – then, only x64.
Installing Webmin and Virtualmin:
The installation process is very simple, Webmin programmers have taken care about it.
1. Enter the server via ssh (for example, using Putty) as root user. Of course, you can use sudo, but it is completely unnecessary at the stage of primary server installation and setting.
2. Before starting the installation, you need to specify the host name. Check, whether you have it specified:
If the host name is empty or localhost, that mean, you need to specify it before continuing the installation. Let’s correct hosts file, using vi editing program:
Press "i" for changing to an edit mode, add “hostname helpdesk.zone” line (change for your host) and also add your host name to the line with the address 127.0.0.1. You should get something like this:
Save changes and close vi, to do this you should type ":wq".
Now, run the command again:
In the result, you should see the above-stated host name. If you cannot see it – it means, you have made a mistake somewhere.
3. Now, download the installation script:
If there is no wget tool in your system – install it, using “yum install wget” command.
4. Now, give the script the write rights and start it:
chmod 744 ./install.sh
The script will fulfill all the further actions on its own, from time to time asking you various questions. Installation may last 5-60 minutes, depending on the server capacity. As soon as the installation is over, you can start using Webmin and Virtualmin.
5. After finishing the installation process, proceed to the address https://[server ip address]:10000 for primary setting and starting the working operations.
If you have any questions or need some details – please, ask a question or leave a comment.
Good luck to you!