How To Install OGP Panel On Fresh Debian 9 Machine

How To Install OGP In Debian 9

Open Game Panel or OGP is an online PHP and MySQL based game panel which can be used to manage game through the web interface. OGP brings ease for gaming community owners to host their game servers on their VPS and control it easily without logging into SSH every time. When installing, OGP has got two structures to be installed before it is fully available to start being used. The first one is an agent and the second is the panel. Let’s see what are those.

OGP Panel Structures

The OGP panel is divided into two structures, the first one is an agent and the second is a panel. Let’s see what a panel is.

OGP Panel

OGP Panel is a web GUI that is used to manage the games hosted on a particular server. It consists of “Start”, “Stop”, “Restart” and other necessary buttons required to operate a game server without logging into SSH of the server. In simple words, it is a web application, a collection of PHP files and MySQL database. It is useless without a remote server, ie, an agent.

OGP Agent

As mentioned above, the OGP Panel is useless without a remote server, aka, an agent. OGP Agent is a remote/local server which is where the games are hosted. The panel first connects to the agent and then the panel operator can make a game server. When an action/operation is executed through the panel, the panel sends a request to the agent and that is where it is processed.

In this article, we’re gonna learn how to install OGP Panel on a fresh Debian 9 VPS/dedicated server. Before we begin, let’s take a look at system requirements.

System Requirements

  • Minimum 512 MB RAM
  • 4 GB minimum disk space
  • At least 1 vCore/Core
  • Debian 9 OS(For this tutorial, we’ll be using Debian 9. OGP can be installed on other OS too.)

Let’s begin!

How To Install OGP Panel on a Debian 9 machine

Connect to your VPS using SSH client, Putty. If you don’t know how to, read this article to know how to connect to a VPS using Putty.

Step 1 – Updating & Upgrading packages.

Before we begin installing packages, we need to update and then upgrade existing packages which includes some serious ones such as kernel files and etc. We’ll also install sudo in the machine as it needs to be installed for sudo privilege. Debian 9 doesn’t come up with sudo already installed so we have to install manually. So to avoid any conflict or version problem, let’s get started.

apt update && apt upgrade
apt install sudo

The above command will update and then upgrade all existing packages. All you have to do is to press “Y” when asked and then press Enter so that it updates itself. Don’t hurry or worry as this may take up to 10 minutes to get fully upgraded.

Step 2 – Installing Required Packages

To run OGP, we have to install a few packages that will allow OGP to perform various tasks. To install them, write the following command.

sudo 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

As said before, press “Y” then press Enter wherever asked.

Step 3 – Installing MySQL Server

For processing data through the server, we’d obviously need a database. To do so, we’ll use MySQL. In Debian 9, we will use MariaDB to install MySQL. Run the following command to install MariaDB.

apt install mariadb-server

It is now has been installed. Now let’s set it up.

Step 4 – Setting up MySQL Server

MySQL has been installed. To set up, use the following command.

mysql_secure_installation

Now it will ask for a few things. Firstly, it will ask you for entering the MySQL root password. But since it is a fresh installation, press Enter without entering the password and we’ll go on the next step.

Enter current password for root (enter for none):

Now the next step would ask if you want to set up a MySQL root password. Press “Y” for it. Enter the new password.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables...
 ... Success!

Now it will ask for the next few questions. They don’t need much explanation so just follow the instructions as mentioned below.

Remove anonymous users? [Y/n] Y
 ... Success!
Disallow root login remotely? [Y/n] Y
 ... Success!
Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reload privilege tables now? [Y/n] Y

We’re now done setting up MySQL.

Step 5 – Downloading & Installing OGP On Debian 9

We’re successfully setup PHP & MySQL. It’s time to download and setup OGP. To do so, use the following commands.

wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb" -O "ogp-panel-latest.deb"
sudo dpkg -i "ogp-panel-latest.deb"

It will now automatically install everything required for OGP Panel and panel itself. Wait till it finishes.

Step 6 – Setting Up MySQL For OGP

We’ve installed OGP and now we need a database to set it up. To make a database, you don’t need any manual intervention. All you need is the root MySQL server password which you used in the 4th step.

sudo mysql_secure_installation

This will begin with the MySQL Setup. Make note that this is required for a fresh machine ONLY. If you already have MySQL set up on your server, skip this step. It will then ask if you already have the MySQL password set up. Press Enter. Then following the steps. It will ask you to enter the MySQL password twice for confirmation. The password, nor asterisk will show up with the password section for security reasons.

Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!
Remove anonymous users? [Y/n] Y
 ... Success!
Disallow root login remotely? [Y/n] Y
 ... Success!
Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
Reload privilege tables now? [Y/n] Y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Now since we’ve done setting up MySQL, it’s time to go for OGP Panel. We’ll need to pull it from it’s Github repository and then install it with dpkg.

wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb" -O "ogp-panel-latest.deb"
sudo dpkg -i "ogp-panel-latest.deb"

After pulling and installing OGP, it will automate the database connection by asking you just the root password so that it can create a separate user and a database for OGP. Once you’re done entering the root password, you will see MySQL credentials like this:

MySQL Host: localhost
MySQL User: ogpuser
MySQL User Password: vttveSxQlMp5
MySQL Database Name: ogp_panel

Copy it and paste it in notepad as we’ll require it in setting up MySQL for OGP via web-interface.

You will see something like the above. Press “Next” and then it will ask for the database details. Paste it according to what you’ve copied in the notepad.

Page after entering MySQL details
Page after entering MySQL details

After entering the MySQL details, if you see this, it means you’ve successfully set up the database. Now you can create an admin credential for yourself with a proper email address. OGP Panel now has been installed. It’s time to install the OGP agent. We’ll do it in the next article.


Conclusion

Are you looking for a cheap VPS provider for hosting your gameserver? Affordable, secure and reliable VPS hosting at Shadow Hosting. If you’ve got any queries, comments are welcomed :).

About Manal Shaikh 22 Articles
Manal Shaikh, the Founder of Shadow Networks International and CEO/Chairman of Shadow Hosting International. A cybersecurity analyst, network analyst and a web administrator.

Be the first to comment

Leave a Reply

Your email address will not be published.


*


CommentLuv badge