Post4VPS Forum | Free VPS Provider
How to install OpenGamePanel on Debian/Ubuntu - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials)
+--- Thread: How to install OpenGamePanel on Debian/Ubuntu (/Thread-How-to-install-OpenGamePanel-on-Debian-Ubuntu)



How to install OpenGamePanel on Debian/Ubuntu - sAmI - 09-28-2020

This is an updated tutorial! The previous tutorials of OpenGamePanel posted on Post4VPS can be found here Thread 1 & Thread 2.

Hello there!
OpenGamePanel is a free and really easy to use game management panel which consist of many features and it is better than some paid game management panels. OpenGamePanel have two parts which i will show you how to install
1. Panel/Website : Which will be used to manage your server and agents and install game servers etc.
2. Agent : Which will control all your servers and it can be remotely managed by the Web Interface!

Step 1 : [b]Updating your VPS:[/b]


Code:
apt-get -y update && apt-get -y upgrade 


Step 2 : Preparing and Installing Required Packages for Web Panel

Code:
apt-get install apache2 curl subversion php7.0 php7.0-gd php7.0-zip libapache2-mod-php7.0 php7.0-curl php7.0-mysql php7.0-xmlrpc php-pear phpmyadmin mysql-server php7.0-mbstring php-gettext git php-bcmath  - UBUNTU 16.04 & DEBIAN 9!

Code:
apt-get install apache2 curl subversion php7.2 php7.2-gd php7.2-zip libapache2-mod-php7.2 php7.2-curl php7.2-mysql php7.2-xmlrpc php-pear mysql-server php7.2-mbstring php-gettext git php-bcmath - UBUNTU 18.0

Code:
apt-get install apache2 curl subversion php7.3 php7.3-gd php7.3-zip libapache2-mod-php7.3 php7.3-curl php7.3-mysql php7.3-xmlrpc php-pear mariadb-server php7.3-mbstring php-gettext git php-bcmath - DEBIAN 10

Step 3 : Installing OpenGamePanel

Code:
wget "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb"
sudo dpkg -i "ogp-panel-latest.deb"
After doing the second step you will be prompt to enter your root SQL Password so it can create a database for the Panel. The details will be shown for your OpenGamePanel Database Like this:
Code:
MySQL Host: localhost
MySQL User: ogpuser
MySQL User Password: lbRufrXCdd3e
MySQL Database Name: ogp_panel

After entering your root password you can now open http://2.2.2.2/ (Change it with your server ip) you will be redirected to the install page! 
If you just in case did not save the password before you can use the following command to retrieve your database password 
Code:
cat ogp_panel_mysql_info

Step 4 : Installing a theme (because the default theme looks really old duh) and this obsidian theme is created by HMR!

Code:
cd /var/www/html/themes/
git clone https://github.com/hmrserver/Obsidian.git
mv Obsidian/themes/Obsidian/* Obsidian/

Step 5 : Installing Required Packages for OpenGamePanel Agenta

Code:
sudo apt-get install libxml-parser-perl libpath-class-perl perl-modules screen rsync sudo e2fsprogs unzip subversion libarchive-extract-perl pure-ftpd libarchive-zip-perl libc6 libgcc1 git curl
sudo apt-get install libc6-i386
sudo apt-get install libgcc1:i386
sudo apt-get install libhttp-daemon-perl
sudo apt-get install lib32gcc1

Step 6 : Installing the OpenGamePanel Agent

Code:
wget "https://github.com/OpenGamePanel/OGP-Agent-Linux/archive/master.zip"
unzip master.zip
cd OGP-Agent-Linux-master/

# Create a USER for
sudo adduser ogpbot
sudo usermod -a -G sudo ogpbot
sudo bash ./install.sh
Now you have successfully installed OpenGamePanel AGENT and WEB Panel you can easily now add your server to the web panel
Click on Administration>Servers
Where you have to put your Server IP and your encryption key which you set when you were installing the OpenGamePanel Agent!
Links to some other themes  I hope you find this tutorial useful! as there are few old threads Thread 1 and Thread 2, Which were a little bit outdated and a little bit difficult to install. I have tested this on a VPS with Ubuntu 16.04 and Debian 9. Soon will update it for CENTOS 6 and 7 too!
I did not use the easy installer for installing agent it somewhere breaks and causes issues, I used a manual installer which is more easy and shows you many option to setup for the agent!

Regards,
sAmI