How to setup Litebans web interface for your Minecraft server

 General, Game Hosting, VPS Hosting, Web Hosting

This tutorial will guide you through making your own bans website using Litebans. Please note that in order to set this up, you need a domain and website hosting attached to that domain, as Litebans only provides the UI for setting up your bans website.

This guide assumes that you already know how to install plugins and have Litebans downloaded. This guide will also talk through setting up the Litebans UI through the cPanel provided by ElixirNode’s website hosting packages.

Download the litebans web UI package, here.

LiteBans config

Log into your cPanel and navigate to “MySQL databases

Elixirnode cPanel

Create a new database. This database can have any name, but for this example, we shall call it ElixirServer

Elixirnode MySQL

Scroll down the page to the section where you can add new users. Add a new user to this database, and assign it a password, which for this example, we will use the username and password, Elixirnode // ElixirRiver

Elixirnode MySQL users

Under the “Add new user” section is a section to add users to databases. Select your new database and add your new user to it.

Elixirnode add user to MySQL database

You will now be prompted to choose what permissions to give your new user. Select “All privileges” then “Make changes

Elixirnode add permissions to a database user

Congratulations on making it this far! We’ll be heading over to the game panel for the next part of this tutorial, but keep your cPanel open in the background as it will be needed later.

On the game panel, under “File management“, navigate to “\plugins\litebans” and open the “config.yml” file.

Elixirnode litebans config.yml

Make the following changes to the config.yml file. Line numbers are provided for your convenience and are correct at the time of writing for a fresh install of litebans 2.6.3

Change the “Driver” to MySQL (line 34)
Change the “Address” to your website hosting IP address, with port 3306 (line 41)
Change the “Database“, “Username” and “Password” settings to the database name and the new user’s username and password you created in steps 3 and 5, in this case [elliamy_ElixirServer] and user [Elliamy_ElixirNode, ElixirRiver]. (These settings can be found on lines 44, 45, and 46)

Once those changes have been made, save the file and restart the server.

litebans config.yml changes

If done correctly, you should now see an ERROR in your console. Please don’t worry, this is expected! The error should look something like this:
Error: Failed to initialize pool: Access denied for user ‘elliamy_ElixirNode’@’’ (using password: YES)

You should copy the part of the error after the @ sign, in this case,

Keep this copied or saved somewhere safe, and navigate back to the website hosting “cPanel” and select “Remote MySQL

Elixirnode remote MySQL on cPanel

Paste the part of the error you copied earlier into the “Host” box, then click “Add Host“. Now restart your Minecraft server.

Elixirnode cPanel add access host

Now we have litebans connected to our newly created database, all that’s left is to set up the web UI we downloaded in step 1! Navigate back to your website hosting “cPanel” home page, and click on “File manager

Elixirnode cPanel file manager

Navigate to the “Public_html” folder and create a new folder called “bans

CPanel public_html

In the “bans” folder, upload the UI we downloaded in step 1, by clicking the “Upload” button on the upper toolbar, then clicking on “Choose file” then double-clicking on the downloaded file.

Uploading litebans UI

Extract all the files from the zip and place them in the “bans” folder.

Extracting files from litebans UI

Move all the files from the extracted folder the the “bans” folder.

Moving litebans UI files back into bans folder

In the “bans” folder, navigate to the “inc” folder and locate the file “settings.php”. Right-click on this file and select “Edit“.

Editing the litebans UI settings.php file

Change the fields labeled “database“, “username” and “password” to the same as it was in step 8. Please keep “host” as “localhost“. Then hit “Save changes

Making changes to litebans settings.php file

Congratulations! You should now have a bans website, which you can access at “yourdomain/bans“!!!!!

litebans ban website

If you’ve made it this far, you must be looking to make the best possible hosting for Minecraft server! Here at Elixirnode, we strive to help make your server succeed! We’ve compiled some extra tips and tricks to create the best hosting for Minecraft server there is, and the best website hosting tips to get all the rest of your web work done with ease! Check them out below!

– Litebans can conflict with Essentials when trying to execute commands via the console. Ensure you use Litebans:command when using the console to avoid using Essentials instead! You can, however, head to the config.yml file of essentials, and add to a list of overridden commands (line 162), to default to Litebans instead of Essentials
– Ensure you follow steps 7-9 on all servers in a bungee configuration to see the bans across your network.
– Litebans is an amazing premium plugin! if you’re looking for a few more premium plugins to add to your server, check out our top picks here.
– Did you know you can add a GUI bans plugin to Litebans, allowing staff members to select pre-set offenses with pre-set ban durations, giving punishments on your server a consistent approach? Check out Spigot and bukkit for some ban GUI plugins!

If you still need help, contact us

Was this article helpful?

Sign up to be alerted of new articles!

We will let you know of any new articles that we publish so that you may benefit from the many upcoming tutorials we have planned for you.