Ubuntu 24.04 & Virtualmin install guide

SYSTEM INFORMATION
OS type and version Ubuntu 24.04
Webmin version Latest release

OK guys. I want you to guide me how to install Webmin + Virtualmin with all technical steps and crucial settings that may or may not confuse other newbies like I am.

This tutorial should help others, so my intention is to help us better understanding this Web panel.

At this step I have Ubuntu 24.04 , I’ve created swap file (using this method https://askubuntu.com/a/796997/351589) and executed apt-get update

This is how my terminal looks like now

So, what I want is: tell me how to setup Hostname, and if I want to use mydomain . com : 1000 to sign into Dashboard what should Hostname look like?
serv1 . mydomain . com 127.0.0.0 or mydomain . com 127.0.0.0 or serv1 127.0.0.0

I have domain in my pocket, parked and waiting. I want to build this how it should be, with your help.

So in this step, we should prepare OS to be ready for script to install Downloading and Installing | Virtualmin — Open Source Web Hosting Control Panel

Why did you create a swap file first? Was there any particular need or requirement for that?

Have you looked at the installation guides? I’d recommend starting there before asking further questions.

And DO NOT use your host name for anything other than a proper FQDN!

1 Like

My instructions for Ubuntu 22.04 but should be similar.

1 Like

Thanks. I’ll take a look

OK, this is what I did and how it goes..
Prepared domain to point to my new server.

and …

nano /etc/hostname
mydomain.com

nano /etc/hosts
127.0.1.1 default ← removed
serverIP mydomain.com mydomain

Fresh Virtualmin install and I have Let’s Encrypt cert sign from the start

Before I go any further, if you know any advice please write here.

Basic security setup

SSH
adduser someusername (without sudo priviledges)

/etc/ssh/sshd_config

#Port 22 uncoment and set desired ssh port → open new port in FirewallD (Webmin → Networking → FirewallD)
PermitRootLogin no

Web panel

Change default Webmin & Usermin ports 10000/20000
Go to

Webmin → Webmin → Usermin Configuration → Ports ans Addresses (Choose desired port)
Webmin → Webmin → Webmin Configuration → Ports and Addresses (Choose desired port)

None Virtual Server at this point

I don’t understand why you wouldn’t just follow our documentation?

The install script will offer to create a swap file for you, if the system doesn’t have sufficient memory (though it creates a relatively small one, and maybe you want a bigger one…though if you’re making huge swap because you simply don’t have enough memory to run everything performance will suffer tremendously).

1 Like

Hi Joe.

Well, let’s just say that script isn’t always the only way to do it. Moreover, script can’t see or predict what people’s intentions are.

Actually, first time I’ve googled for a swap file was few months after script finished and server started choking for either CPU power or more RAM. Swap file resolved issue immediately and for good.

There are many ways to configure a server for shared web hosting and most of us here do it the Virtualmin way. This has a great advantage - the entire community here has systems which are substantially similar to each other’s and so members of the community are able to help each other improve (e.g. the recent discussion about Redis) and troubleshoot (e.g. the recent discussion about changing PHP version) their Virtualmin systems.

If you choose to off-road, @IvanS, there is nothing stopping you from doing so but you will end up with a system which is unique and different from those of the rest of the community. You know your intentions best but I feel that there is a greater chance of running a successful web hosting service with Virtualmin if you comply with the way Virtualmin works rather than making Virtualmin comply with the way you intend to work. For example, all the deviations from standard that you have carried out in the message captioned “Basic Security Setup” are quite unnecessary and do not help make your system even a bit more secure.

Experienced Virtualmin users can get Virtualmin to work the way they want - Virtualmin is very flexible and modular - and you need to decide if you are ready for this. Till that point, I would follow Joe’s advice and install Virtualmin exactly as outlined in the official documentation, if I were you.

1 Like

I remember you, and you got me once :slight_smile:

I had hardware on ARM and, like you said that time, it is like shooting myself in the foot