# Migrate from Webmin to Virtualmin possible? 💼

**URL:** <https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358>\
**Category:** Help! (Home for newbies)\
**Created:** [December 28, 2022, 10:36am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358 "2022-12-28T10:36:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 10:36am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/1 "2022-12-28T10:36:12Z")

</div>

I just wonder if is is possible to migrrate from standard wewbmin to Virtualmin.  
The reason is that we need to migrate our old invoice server.

if possible, what is the best way to go about this?

I saw there is a migration too in Virtualmin so that it is even easier when you need to move the server at some point to a new host?

Is that included in the free version or only in the paid version?

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Linux/Ubuntu |
| Virtualmin version | none |

Thanks in advance. 👍 😏  
Kind regards

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 28, 2022, 11:56am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/2 "2022-12-28T11:56:26Z")

</div>

Hello @LionKing and welcome to the community.

> [@LionKing](#):
>
> Is that included in the free version or only in the paid version?

Here are the features of Virtualmin Pro:  
[https://www.virtualmin.com/professional/](https://www.virtualmin.com/professional/)

> [@LionKing](#):
>
> I saw there is a migration too in Virtualmin so that it is even easier when you need to move the server at some point to a new host?

Yes, Virtualmin → Server Configuration → Transfer Virtual Server makes it possible to transfer domains / Virtual servers between Virtualmin systems. Using this is easier than migrating a domain / virtual server manually.

> [@LionKing](#):
>
> is is possible to migrrate from standard wewbmin to Virtualmin

It is this question of yours that I am unable to understand. Are you certain that your old invoice server is Webmin and not Virtualmin?

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 12:25pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/3 "2022-12-28T12:25:38Z")

</div>

Hello @calport and thanks your reply.

> [@calport](#):
>
> It is this question of yours that I am unable to understand. Are you certain that your old invoice server is Webmin and not Virtualmin?

Yes we run Webmin on that.  
 ![image](https://forum.virtualmin.com/uploads/default/original/2X/a/a8614e1c85ba4c2e1dbded167a195d5efea1a518.png)  
So the idea is to move to Virtualmin because it has more features than the Webmin CP.

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 12:26pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/4 "2022-12-28T12:26:38Z")

</div>

![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/c43e1c332933c832e400165081d281f441628edf.png)

Is it very complicated to convert Webmin to Virtualmin?

Does there install script install all required software automatically or would you need to install every software such as webserver, database etc manually?

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 28, 2022, 12:56pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/5 "2022-12-28T12:56:11Z")

</div>

> [@LionKing](#):
>
> Is it very complicated to convert Webmin to Virtualmin?

The short answer is yes. It is very, very complicated to convert Webmin to Virtualmin.

> [@LionKing](#):
>
> Does there install script install all required software automatically or would you need to install every software such as webserver, database etc manually?

The Virtualmin install script is supposed to be used only on a fresh server with just the OS installed. I cannot overemphasize this point. If you make the mistake of running the Virtualmin install script on an existing Webmin system then all the configuration and apps installed on the Webmin system may stop working normally. You should therefore **not do this** on your system, @LionKing .

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 28, 2022, 1:01pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/6 "2022-12-28T13:01:23Z")

</div>

> [@LionKing](#):
>
> So the idea is to move to Virtualmin because it has more features than the Webmin CP.

Please understand that Webmin and Virtualmin are two entirely different things.

Webmin is a web based server management system.  
Virtualmin is a web based shared hosting management system.

See shared hosting:

> **[The Definition of Shared Hosting for Your Website](https://blog.hubspot.com/website/shared-hosting)**
>
> Learn everything you need to know about shared web hosting, including what it is, how it works, and the best software providers available for your company.

Virtualmin runs on top of Webmin so you are not entirely incorrect in that a Virtualmin system has more features than a Webmin system. However, most of us who use Virtualmin install it on a fresh server with just the OS installed.

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 1:27pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/7 "2022-12-28T13:27:24Z")

</div>

> [@calport](#):
>
> Virtualmin runs on top of Webmin so you are not entirely incorrect in that a Virtualmin system has more features than a Webmin system. However, most of us who use Virtualmin install it on a fresh server with just the OS installed.

RIght, so basically you install both webmin and Virtualmin on a server to get it working then?

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 28, 2022, 1:43pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/8 "2022-12-28T13:43:41Z")

</div>

> [@LionKing](#):
>
> RIght, so basically you install both webmin and Virtualmin on a server to get it working then?

No.

I will put it to you like this: I get a fresh server with just the OS installed on it and then I run the Virtualmin automated install script. This installs Webmin + Virtualmin.

See  
[https://www.virtualmin.com/documentation/installation/automated/](https://www.virtualmin.com/documentation/installation/automated/)

I do not install Webmin and Virtualmin in any sequence. Both are installed in one go by the automated install script.

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 2:01pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/9 "2022-12-28T14:01:20Z")

</div>

> [@calport](#):
>
> I do not install Webmin and Virtualmin in any sequence. Both are installed in one go by the automated install script.

Right, got it. Thank you.

My idea was to install Virtualmin on the existing server which only runs webmin and then install a fresh copy on the new Virtualmin to then migrate over the old server in its current web app to it.

But that plan/idea might not work then?

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 28, 2022, 2:15pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/10 "2022-12-28T14:15:24Z")

</div>

It will not work if you or I try to do that.

An expert like @tpnsolutions might be able to get it to work. Ask him.

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 4:57pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/11 "2022-12-28T16:57:20Z")

</div>

Thanks for your help and explaining this. It is very appreciated.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [December 28, 2022, 7:07pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/12 "2022-12-28T19:07:04Z")

</div>

> [@LionKing](#):
>
> My idea was to install Virtualmin on the existing server which only runs webmin and then install a fresh copy on the new Virtualmin to then migrate over the old server in its current web app to it.
> 
> But that plan/idea might not work then?

That’s more complicated than it needs to be, almost certainly. There are at least two ways to do this, one is very generic and will work no matter what (and Webmin is irrelevant in the generic solution). One would only be easy if your system already kinda looks like the way Virtualmin sets up a hosting system. I’ll cover the latter at the end, as it’s maybe wishful thinking…there are a lot of ways to setup a hosting system, the odds you set yours up to look like our way of thinking seem pretty slim (though we’ve always tried to adhere to current best practices, there’s disagreement about what makes a practice best).

Here’s how I’d do that:

Forget about Webmin on the old server. Webmin doesn’t provide anything useful here, and installing Virtualmin on a production system is…tricky, to put it mildly, and potentially even risky (though not overly so). You’re going to have to hit the command line.

Install Virtualmin on your new system with a freshly installed supported OS. Choose a new-ish OS. Don’t install CentOS 7 or something else stupidly old.

Now…create a new domain in Virtualmin on the new server (same name as your old website). This is the new home for your old website.

Copy all the data from the web root on the old server over to the new server into `/home/domainname/public_html`.

Dump the database(s) on the old server. You can use Webmin for this, if you’re not comfortable with the MySQL command line client. You just need to export the data in a format that can be imported into the new system. If you’ve got a recent MySQL version on your old server, you’ll need to back up a few steps and switch the new server to MySQL because there are likely incompatibilities. But, of the old server is old, and with an old version of MySQL, a dump from that will import into Mariadb on the new server just fine. Copy the databases over and import them into databases owned by the new domain you created in Virtualmin (you can create as many as you need, if you have more than one).

Update the password in the app config file(s) to the new database password (or reset the Mariadb password for the new domain user to the one you’ve been using, but I prefer to change passwords every time I migrate).

Test your app and whatever other website stuff you brought over to the new server, by adding the new IP to your local hosts file so you can browse the new site and poke around. It probably needs some tweaks to stuff like .htaccess files, paths in your application config, etc. Mail sending and receiving from the app probably won’t work yet.

Once the app is working, make notes of any changes you made, since you may need to do an rsync of data or files once all the rest of the migration is done, and that would undo your changes that made the app work.

Now move on to…other stuff. If you’ve got mail, you’ll need to bring it over. How you do that depends on a lot of factors. Mail is the most widely varying element of hosting on a Linux system and nobody does it the same way. You may need to convert from mbox to Maildir (Virtualmin’s preferred format, though we also support mbox, if you must). We even have code to do that translation, but I can’t for the life of me remember how to go about it. You’ll have to dig into the forums (they go all the way back to 2005 when mbox was a reasonable way to store mail, so we’ve discussed conversion several times).

Once you’re on Virtualmin on your new system and you’re doing things the way Virtualmin does them, you never really have to think about all these differences again. You can always move a Virtualmin backup to a same-version or newer Virtualmin system (same OS version or newer, too, that’s even more important than Virtualmin version) without much hassle, as we try to accommodate all the minor changes we’ve made over the years to how things are done and default configs. And we can much more easily help you when things go wrong with migrations from one Virtualmin server to another, because we are familiar with all the various versions of Virtualmin and the way it’s done things over the years. Your old system is a total mystery to us. You’ll have to understand it to migrate out of it.

Now, on to the wishful thinking option. The one that involves installing Virtualmin (but _not_ running the automated install, because that would be incredibly dangerous on a production server and is not something you should ever do). This is only worth doing if your LAMP stack and the way you configure things is kinda similar to the way we do things in Virtualmin.

You have Webmin on the old, but Webmin doesn’t come with a stack of applications and a default configuration, and having Webmin tells us literally nothing about what your hosting stack looks like. The way you setup your server could be _wildly_ different from what a Virtualmin system looks like.

But, if you have your domain in its own home directory (preferably in /home, but you can configure around it being in /var/www, as long it has its own user), you could install the Virtualmin module into Webmin (it’s just one Webmin module, installable like any other Webmin module), and if (this is a _big_ if) you did most things in your LAMP stack (and mail stack) similar to the way Virtualmin does it, you could use the Import Virtual Server feature.

Here’s where I think this method is likely to fail:

1. If you’re using mod\_php to run your app. That was a mistake back when you built the server, and it continues to be a mistake today, but it’s a mistake that’s hard to work around when using a Virtualmin backup/restore, since Virtualmin will expect to be able to restore the app as it was…mod\_php stupidity and all. You probably have to install mod\_php on the Virtualmin server, restore the domain(s), and then switch to a good execution mode (php-fpm) and then uninstall mod\_php (because you absolutely should not have mod\_php on any server).
2. You probably didn’t create a user for the domain, you probably just put your site into /var/www and made it the default site. Easier just to create a new domain in your Virtualmin server, copy the app and databases over to the new domain user’s home and databases, and fix permissions.
3. Mail is probably a mess. I won’t even try to guess what you did, there are too many possibilities. Virtualmin will probably guess wrong, too, because there are too many variables.

I’ve rambled a lot, mostly because I have incomplete information. The fact that you installed Webmin tells us literally nothing about how you’ve configured your system, what servers you’re using, etc. and that’s what determines whether you can import the domains into Virtualmin on that old server in a reasonable way and a way that would lead to backups that could be restored on a new Virtualmin server. It _might_ work. It _might_ even be easy. But, that depends on so many variables shaking out in the right way (and I know what kind of crazy complicated and insecure shit is out there on the internet in terms of guides for setting up a LAMP stack).

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 28, 2022, 8:16pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/13 "2022-12-28T20:16:19Z")

</div>

Wow, thanks a bunch for this awesome write up @Joe and sharing all this information which is very appreciated. 👊 😃

Well we are have setup this production server with our invoice system (Runs Invoice Ninja: [https://shorturl.gg/Invoice-Ninja](https://shorturl.gg/Invoice-Ninja)), which runs on a Linux Ubuntu server:  
 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/d/d678181bf796e82e5f6b33e7be98255b6f27a408.png)  
and it is manually installed with php 8.1, mariaDB, Apache webserver, Lets Encrupt SSL certs and then Webmin to ease the pain of using Linux and make it faster/easier for daily admin task.

We are not forced to move as the old host is shutting down and being mergered with the new one and they are forcing us to move to new server, (_Well not us of course, but all old customers_). So obviously we are looking for a way to move this server quickly as we have very few days left to do it. I saw that Virtualamin had some interesting functions so I thought I would look closer into it which is also why I ended here.

Again thanks.  
Kind regards

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [December 28, 2022, 8:24pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/14 "2022-12-28T20:24:13Z")

</div>

If you’d wanted easy, you should have started with Virtualmin on the old server. 🤷

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 29, 2022, 12:47am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/15 "2022-12-29T00:47:44Z")

</div>

We didn’t think about it back then. Nothing is “_easy_” anyways.

---

<div class="post-metadata">

**Author:** ![calport](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/calport/32/44_2.png) [@calport](https://forum.virtualmin.com/u/calport)\
**Post date:** [December 29, 2022, 6:14am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/16 "2022-12-29T06:14:19Z")

</div>

Here is an idea:

1. create a new VPS with AWS or Linode or whoever
2. install Virtualmin
3. create a virtual server and install Invoicninja
4. migrate just the invoiceninja database over from the old invoice server to the new VPS

I think this should give you a functional copy of your invoicing system. Test it fully and if it looks good:

1. format the old invoice server / get a new one from your provider
2. install Virtualmin
3. create a virtual server and install Invoicninja
4. migrate the invoiceninja database over from the new VPS to your new invoice server
5. kill the new VPS

You will then have your invoice server on a Virtualmin system.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [December 29, 2022, 6:42am UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/17 "2022-12-29T06:42:40Z")

</div>

> [@LionKing](#):
>
> and it is manually installed with php 8.1, mariaDB, Apache webserver, Lets Encrupt SSL certs and then

One little bit of light in your situation: MariaDB makes the database part of migration easy, since it’s the default database in a fresh install of Virtualmin. Restoring a MySQL database into MariaDB can be tricky these days since MySQL has begun diverging in incompatible ways in the past couple of versions.

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 29, 2022, 12:06pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/18 "2022-12-29T12:06:36Z")

</div>

> [@Joe](#):
>
> light in your situation: MariaDB makes the database part of migration easy, since it’s the default database in a fresh install of Virtualmin. Restoring a MySQL database into MariaDB can be tricky these days since MySQL has begun diverging in incompatible ways in the past couple of versio

Thanks a bunch @Joe 👊

---

<div class="post-metadata">

**Author:** ![LionKing](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/lionking/32/7631_2.png) [@LionKing](https://forum.virtualmin.com/u/LionKing)\
**Post date:** [December 29, 2022, 12:07pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/19 "2022-12-29T12:07:21Z")

</div>

Thank you so much @calport 😃

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [December 29, 2022, 5:09pm UTC](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358/20 "2022-12-29T17:09:35Z")

</div>

> [@Joe](#):
>
> Restoring a MySQL database into MariaDB can be tricky these days since MySQL has begun diverging in incompatible ways

or Maria is not keeping up 😉

[Next page](https://forum.virtualmin.com/t/migrate-from-webmin-to-virtualmin-possible/118358.md?page=2)
