Install VirtualMin on CentOS 6

VirtualMin provides functionality for non-root users on their shared hosting accounts. This tutorial shows how to install VirtualMin on a CentOS 6.4 server.


  1. Read the CentOS - Setup article.
  2. Ensure that you are running as a normal user with privileged access (sudo).
  3. Begin with a clean server. This installation MUST be performed on a server that has nothing else installed. If you have already begun installing software on your server, use the Rebuild function in the Cloud Control Panel.
  4. Set up DNS for your server. See Create DNS Records for Cloud Servers with the Control Panel for more information.
  5. Your server has at least 1 GB of memory. You can install VirtualMin on a small server, but you will not have access to all of the features.
  6. Update your system to ensure that you have all of the latest software installed by running the following command:
    sudo yum -y update
  7. Install Perl with the following command:
    sudo yum -y install perl

Install VirtualMin

  1. Download the VirtualMin installer by running the following command:
  2. Install VirtualMin by running <pre>sudo sh</pre>

  3. When you are prompted with a license agreement, press Y and then press Enter.

  4. After the installation is complete, you should see the following output:

    ssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay: Succeeded.

Set up VirtualMin

  1. To access the VirtualMin console, point your web browser to your server IP address.

    It should look something like

  2.  Use your server root username and password to log in.

  3. After you log in, you will enter a Post-Installation Setup Wizard. Click Next to begin the wizard and select your settings.

    • Pre-load VirtualMin libraries by clicking Yes and then Next.

    • Run the ClamAV virus scanner on your server by clicking Yes and then Next.

    • Run the SpamAssassin email spam scanner. If you are hosting email on your server, you should enable this tool by clicking Yes and then Next. If you are not hosting email, you can skip this step by just clicking Next.

    • Enable MySQL or PostgreSQL database servers by selecting either or both options and click Next. This is optional, and if you choose not to enable a database server, you can skip this step by clicking Next without selecting any options.

    • Choose how VirtualMin should save passwords. We recommend selecting the "Only store hashed passwords" option for security.

  4. When you are prompted with a completion screen, click Next to return to the main page.

  5. Reload your VirtualMin console by clicking the Re-check and refresh configuration button in the yellow bar at the top of the page.

© 2015 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER