How to Install OGP Panel on CentOS 7 With These Easy Steps

Install OGP Panel

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. 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 which 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 CentOS 7 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
  • CentOS 7 OS(For this tutorial, we’ll be using CentOS 7. OGP can be installed on other OS too.)

Let’s begin!

How To Install OGP Panel on a CentOS 7 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 – Installing required packages.

In the first step, we’re going to install required packages for OGP Panel. This will include EPEL packages and other necessary ones. To install them, copy and paste the below-mentioned commands in your SSH client, Putty. These packages will include MariaDB in it.

sudo yum -y install epel-release wget subversion git mariadb-server

Step 2 – Configuring MariaDB Server & Securing it

In step 1, we installed packages along with MariaDB’s server package. It’s time to configure it via the below-mentioned command. It will ask you to configure it accordingly and you have to follow the steps.

mysql_secure_installation

We’ve written down the steps and you’ll have to confirm and deny accordingly for the best security and configuration. Please do not do it on your own unless you know what you’re dealing up with. Make sure you remember your MariaDB root password as it will be required later in further steps.

Set root password? [Y/n] Y
New password: Enter your password here
Re-enter new password: repeat your password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

After confirming this, you will see something like the below. If it shows how it is, we’ve successfully configured MariaDB.

…. Success!
Cleaning up…
All done! If you’ve completed all of the above steps, your MariaDB installation should now be secure.

Step 3 – Installing OGP Panel packages & Installing it

We’ve successfully configured our machine, to begin with, the installation process. It’s time to install the OGP panel by downloading it and installing it. To do so, use the below-mentioned command:

wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/CentOS/ogp_panel_rpm-1.0.0-1.noarch.rpm" -O "ogp_panel.rpm"
sudo yum -y install "ogp_panel.rpm"

Be patience! It may take up to 5 to 10 minutes or maybe less or maybe more, depending on your server’s speed.

Configuring OGP Panel by connecting it with MariaDB

Now it’s time to connect OGP Panel by connecting it to MariaDB server which we’ve configured it in 2nd step.

sudo bash /var/www/html/create_db.sh

Enter the password that you’ve set in while configuring MariaDB in step 2. Press enter after setting up the password. You will see the credentials containing the MySQL details. It will look something like this.

After setting up MySQL Database
OGP Installation based credential, only for article purpose.

Since we’ve completely configured OGP by creating a database, it’s time to set up the web-based GUI. But before we proceed, we need to restart our system or else we’d face problems proceed further. To restart your CentOS 7 machine immediately, use the below-mentioned command:

sudo shutdown -r now

We’ve configured it successfully. It’s time to set up the web-based GUI.

Step 4 – Configuring OGP Panel page & Creating an Admin user account.

In this step, we will no longer need to proceed with command lines. We now have to configure the website with the credentials we’ve obtained from OGP installation. To do that, copy your server’s hostname or IP address and paste it in your browser’s URL box and press Enter.

http://your.server.ip.address

You will see something like this.

OGP Panel Installation first step

As shown in the above pic, everything should be ticked “OK” & “Found” so that we can proceed further. If you have any issue like if any of the packages aren’t ticked as “OK” or “Found”, follow the step one again and try once more.

Now press “Next” button and follow the steps. It will ask you for the database details. We’ve already created it in a few steps ago.

OGP Panel Database access settings

It will look something like the above one if you’ve pasted it correctly. The password, OGP user, OGP DB, and everything was given to you while connecting MariaDB with OGP Panel in command lines.

Now press next and you’ll see a list of things being “added”. It means you’ve configured OGP Panel with MariaDB successfully. Now start configuring the administrator credentials. Due to some reasons, OGP has disabled putting symbols in the passwords so choose wisely without including symbols in passwords. It will look something like this.

OGP Administrator Login Details
These details are ONLY for article purpose.

As soon as you press the “Next” button, you will find out that you’ve successfully installed OGP on your server. Hurrah! We did it! But wait? Did we really “complete” the installation? No, not yet. It seems like we’ve completed the installation but we haven’t connected the OGP agent and OGP panel yet. To do that, let’s follow the last steps before we’ve good to go.

Connecting OGP Agent with OGP Panel

It’s time to connect the agent server with the panel. To do so, you have to log in to your OGP panel and go to Administration > Servers or simply replace the IP/hostname with the URL mentioned below and proceed. You must have an OGP agent installed before you proceed!

http://your.server.ip.address/home.php?m=server

Now it’s time to enter the agent credentials to the panel so that it can be connected and ready to use. In the “Remote Host” section, enter your OGP agent’s IP address. When you navigate to the next section, other sections will be automatically filled as they should be. In the “hostname” section, again enter the IP or the hostname. For the encryption key, you need to go to step 2 of the OGP agent installation article and write the command and check the encryption key. If you’ve installed OGP agent correctly, it will display the encryption key with the cat command. It will look something like this.

OGP Encryption key

Just copy the key written after the equal sign and paste it in your agent installation process. For the “Display public IP”, enter your OGP agent IP. When done, press “Add remote host” and it will add the remote host.

Manually Adding IP

Sometimes it will display an error saying “Cannot detect the IP”, it means we’ve to manually add the IP to the server. To do so, after adding the OGP agent server, click on the “Edit” button in the server list.

OGP Remote IP

After clicking, scroll down and you will see “Add IP” section. Add the OGP agent IP and then click on “Add IP”. After clicking on it, consider that you’ve manually added the IP address and now you’re finally ready to use your Open Game Panel for your purpose. You can now just get rid of the “Remote server” section and explore other things in the panel.


VPS to Install Open Game Panel on!

You might be wondering which VPS is the best for your need of OGP. Well, Shadow Hosting satisfies your need. We bring you VPS hosting where you can order us to install OGP for you for a small fee! Oh wait, you don’t want to pay for something you can do on your own using this article? Why pay? Just follow the steps and if you have any difficulties, contact our support and we will surely assist you with any OGP installation based query or support and, that for? FREE! Yea! Our support team is always eager to help you out with anything you need in technicality and whatever is in our scope, we’d surely be glad to assist you.

Conclusion

Thank you for reading our article. We hope you like it. Your thoughts are very much welcomed in our comment section below.

About Manal Shaikh 17 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