CLIENT AREACall Us 1-800-383-5193


Call Us 1-800-383-5193


Call Us 1-800-383-5193

Need help?

Our experts have had an average response time of 11.7 minutes in August 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Enabling Git on Virtualmin – How to do it

by | Jun 3, 2021

Need assistance in Enabling Git in Virtualmin? We can help you.

As part of our Server Management Services, we assist our customers with several Virtualmin queries.

Today, let us see the steps followed by our Support Techs in enabling Git on Virtualmin.


Enabling Git on Virtualmin

Before you can use Git with Virtualmin, you must first enable the Git plugin.

Enabling the Git Plugin

Let us see how our Support Techs enable Git plugin

Firstly, enable the plugin at System Settings -> Features and Plugins.

Check the box next to Git repositories , then click the Save button.

If this plugin does not appear, you may need to first install it.

On a Redhat, Fedora or CentOS system, you can install plugin with the following commands, run as root.

On CentOS or RHEL, the install command is :

yum install wbm-virtualmin-git

For Debian or Ubuntu, the command is :

apt-get install webmin-virtualmin-git

If activating the plugin fails due to Git not being installed on your Virtualmin system, you will need to install it first.

On Redhat, Fedora or CentOS the commands for this are as follows :

rpm -Uvh

yum install git gitweb

sed -e 's/^/#/' -i /etc/httpd/conf.d/git.conf

apachectl graceful

While on Debian or Ubuntu, the command is :

apt-get install git gitweb

If neither of those work, you can install the plugin from a Webmin module package as follows :

  1. Firstly, go to Webmin -> Webmin Configuration -> Webmin Modules.
  2. In the From ftp or http URL field, enter the URL
  3. Then, click the Install Module button.

Once the plugin is installed, you can enable it in Virtualmin as follows :

  1. Go to System Settings -> Features and Plugins.
  2. Check the box in the left hand column next to Git repositories
  3. Click Save.


Enabling Git For A Domain

Once the plugin is installed, you can allow a virtual server to create Git repositories as follows :

Below are the steps followed by our Support Techs to enable Git for Domain.

  1. Firstly, select the domain from the left menu, and click Edit Virtual Server
  2. In the Enabled features section check the box next to Allow Git repositories?
  3. Then, click Save Virtual Server

This will perform the setup needed for repositories to be accessed under the /git URL path on this domain, but will not yet create any Git repositories.


Creating A Git Repository

Once a domain has Git enabled, you can add a repository to it like so :

  1. Firstly, select the domain from the left menu, then open the Services category and click Git Repositories
  2. In the Create Git Repository form, enter a name likemyprojectinto the Repository name field.
  3. Enter something likeMy cool programinto the Repository description field.
  4. Select at least one existing user in the domain to have access to the new repository in the Grant access to users field.
  5. Click the Create button.

Once this is done your new repository will appear in the list on the Git Repositories page.

It can then be accessed using the Git client with a URL like .

For more information on exactly which commands to use, click the Repository Commands button.


Granting Access To A Repository

All Git repositories created using Virtualmin allow write access only to authenticated users.

Accounts can create in the same way that you would create mailbox or FTP users, and existing users can grant access to Git repositories.

When creating or editing a user, the Other user permissions section of the Edit Mailbox page will have a field named Git login enabled?.

Just select Yes, and in the Read/write access to repositories field select one or more repos to grant full access to.

As soon as the user will save or create his login and password will be able to checkin to and checkout from the selected repositories.

When logging in you only need to use the user’s short username, which is the part to the left of the @ in his email address.


Managing Repositories

Once you create a repository you can manage it using buttons on the Git Repositories page. These are :

  • Delete : Removes the repository, including all files within it and all user permissions.
  • Browse Repository : Allows the contents and checkins to navigate using a browser. This page is password-protected, but you can login using any access that has been granted Git access.
  • Repository Commands : Shows example commands for pulling from and pushing to the repository


[Need more help with Virtualmin? We are available 24*7]



In short, today we saw steps followed by our Support Techs for Enabling Git on Virtualmin.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *