[ start | index | login ]
start > virtualmin notes

virtualmin notes

Created by john. Last edited by glenn, 107 days ago. Viewed 2,256 times. #10
[diff] [history] [edit] [rdf]
labels
attachments

Following are Centos 5 setup notes:

Use wget, or another cool utility like curl, to grab the RPMS from >>webmin.com. You might find Webmin is already installed, but probably not the latest version, so you can upgrade that with "rpm -Uvh webmin-version.noarch.rpm". Install the >>Virtuamin GPL module and optionally, the theme package as well. If your using Debian or Ubuntu grab the deb packages. (I'll add Debian specific notes soon)

rpm -ivh webmin-1.400-1.noarch.rpm wbm-virtual-server-3.53.gpl-1.noarch.rpm wbt-virtual-server-theme-5.3-1.noarch.rpm

Enable Virtualmin

Login to Webmin, navigate to:

Servers > Virtualmin Virtual Servers (GPL)

Click Recheck and Refresh Configuration button

You will see some error messages, these are to be expected. You could do all the following steps, and avoid these messages or just keep rechecking the configuration as you work through the list, which is a good way to go.

Disable BIND

Most people will find it unnecessary to run a DNS server, and you can use our nameservers and manager your DNS zone from the control panel: >>http://rimuhosting.com/dns/aboutdns.jsp

The first error you will see is:

BIND DNS server version 8 or 9 does not appear to be installed on your system, or has not yet been set up properly in Webmin's BIND DNS Server module. If your system does not use BIND, it should be disabled in Virtualmin's module configuration page.

Click on the "module configuration" hyper link

Or the "Manage Enabled Features and Plugins" button on the first page.

Uncheck "BIND DNS domain" in the table on that page.

Click save button.

The error message appears: Failed to save enabled features : A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration

Configure Postfix:

Either edit the /etc/postfix/main.cf file and add:

virtual_alias_maps = hash:/etc/postfix/virtual

Or if you have a command line phobia, you can go to the Webmin Postfix module, go to Server > Postfix Mail Server > Virtual Domains

On that page for the "Domain mapping lookup table" field, selet the radio button, next to the blank field, and put this in there:

hash:/etc/postfix/virtual

Install Webalizer

You can install via webmin, or just run:

[root@keko]# apt-get install webalizer
Reading Package Lists… Done
Building Dependency Tree… Done
The following extra packages will be installed:
  fontconfig gd libX11 libXau libXdmcp libXpm pkgconfig xorg-x11-filesystem

MySQL configuration

You will need to add the root MySQL password to the Webmin MySQL module. Server > MySQL Database Server

Now you should see this:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

Mail server Postfix is installed and configured.

Apache is installed.

Webalizer is installed.

MySQL is installed and running.

Logrotate is installed.

Using network interface eth0 for virtual IPs.

Default IP address for virtual servers is 72.249.83.148.

Quotas are not enabled on the filesystem / which contains home directories under /home and email files under /var/spool/mail. Quota editing has been disabled.

Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

All commands needed to create and restore backups are installed.

.. your system is ready for use by Virtualmin.

Updating all Webmin users with new settings.. .. done

Disk Quotas

See our guide here for setting up disk quotas:

>>http://bliki.rimuhosting.com/space/knowledgebase/linux/misc/disk+quotas

FTP

Webmin and Virtualmin come with a nice module for Proftpd. There is also a module for vsftpd under Webmin v4 that seems to work ok with Vitualmin, but we are still testing it.

The vsftpd module is available from >>http://www.webmin.com/cgi-bin/search_third.cgi?search=vsftp

Coming soon

My Debian setup notes, and more configuration notes.

Migrating tips

If you need to migrate to another VPS, and you are using Virtualmin, you can backup and restore directly to your new server:

>>http://www.virtualmin.com/documentation/id,virtualmin_administrators_guide/#backup_and_restore

On the server your moving from, Just navigate to Webmin/Servers/Virtuamin Virtual Servers

Scroll down to the bottom of the page and under the Backup and Restore heading, click the "Backup Virtual Servers" button.

On that page you will see all the options for backing up user accounts, websties, MySQL databases, logs, etc… and you can even use the form to scp the files over to the new server.

Once the backup has been transferred is on the new server you can select the "Restore backup" button to unpack your archive, migration finished.

You can check the status of your transfer:

On the old server:

ps aux | grep webmin
root      1330  0.0  1.2  9632 3684 ?        Ss   Jul02   0:03 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
root     28787  2.7 20.0 63984 59208 ?       S    Aug28   1:06 /usr/libexec/webmin/virtual-server/backup.cgi
root     31013  0.1  0.3  3448 1060 pts/1    Ss+  00:21   0:01 scp -r -P 22 /tmp/.webmin/729360_3_backup.cgi root@72.249.82.188 /root/virtualmin.backup
root     31253  0.0  0.1  1536  356 pts/0    D+   00:38   0:00 grep webmin

ls -lah /tmp/.webmin/729360_3_backup.cgi -rw-r--r-- 1 root root 1.3G Aug 29 00:21 /tmp/.webmin/729360_3_backup.cgi

On the new server:

ls -lah virtualmin.backup 
-rw-r--r-- 1 root root 819M Aug 29 04:34 virtualmin.backup
ls -lah virtualmin.backup 
-rw-r--r-- 1 root root 821M Aug 29 04:34 virtualmin.backup
ls -lah virtualmin.backup 
-rw-r--r-- 1 root root 915M Aug 29 04:36 virtualmin.backup

Almost done.

no comments | post comment
Powered by snipsnap.org Found a mistake in a howto? Let us know via an email to p.blikibugs at rimuhosting com.