How To install OpenGamePanel On [Ubuntu/Debian]
#1
Thumbs Up 
OGP AGENT Install Instructions:

All Versions of Ubuntu:

Before we can install the deb package for the OGP Agent, we need to install some prerequisites by running the following commands:



Code:
1
2
3
4
5
6
sudo apt-get update
sudo apt-get upgrade
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 libgcc1:i386
sudo apt-get install lib32gcc1
sudo apt-get install libhttp-daemon-perl




All Versions of Debian:

If sudo is not installed automatically on your installation of Debian, switch to the root user using the below command:


Code:
su root



Install sudo now before proceeding:



Code:
apt-get install sudo



Add your user to the sudo group if you're not a member of it already:


usermod -aG sudo "{REPLACE_WITH_YOUR_LINUX_USERNAME}"



Restart the machine to apply the sudo group change:



Code:
shutdown -r now



Before we can install the deb package for the OGP Agent, we need to install some prerequisites by running the following commands:



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



Debian 8 Extras:

If you're running Debian 8, you may need to install the below package as well:




Code:
sudo apt-get install libarchive-extract-perl




Ubuntu and Debian:

Now, we can download and install the OGP Agent DEB package:



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



The OGP agent user (with sudo access) will be created automatically for you by the installer with a random password. To view the automatically generated encryption key, OGP username, and OGP user password, run the following command: 



Code:
sudo cat /root/ogp_user_password




OGP PANEL Install Instructions:

You'll need the encryption key for the panel.

If you are running Ubuntu 14.04 or lower, run the following commands in a terminal:



Code:
sudo apt-get install apache2 curl subversion php5 php5-gd php5-xmlrpc php5-curl php5-mysql php-pear phpmyadmin mysql-server libapache2-mod-php5 git




If you are running Ubuntu 16.04 or higher, run the following commands in a terminal:



Code:
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



If you are running Debian 8 or lower, first make sure you have sudo installed and your user has sudo access:

If sudo is not installed automatically on your installation of Debian, switch to the root user using the below command:



Code:
su root




Install sudo now before proceeding:



Code:
apt-get install sudo



Add your user to the sudo group if you're not a member of it already:


usermod -aG sudo "{REPLACE_WITH_YOUR_LINUX_USERNAME}"


Restart the machine to apply the sudo group change:


Code:
shutdown -r now



Then, run the following commands in a terminal:



Code:
sudo apt-get install apache2 curl subversion php5 php5-gd php5-xmlrpc php5-curl php5-mysql php-pear phpmyadmin mysql-server libapache2-mod-php5 git



If you're running Debian 7, it is recommended that you also change your DocumentRoot to /var/www/html by running these commands:


Code:
1
2
3
4
5
6
7
sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-available/default
sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-available/default
sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-available/default-ssl
sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-enabled/000-default
sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-enabled/000-default
sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-enabled/000-default
sudo service apache2 restart



Alternatively, you can install mariadb-server instead of mysql if you'd prefer to use that fork:



Code:
sudo apt-get install mariadb-server





During the MySQL server installation, you will be prompted to provide a root user password. Please choose something secure and write it down, as the installer will ask you for it to create the initial OGP database later. Configure MySQL for "apache2" when prompted. PHPMyAdmin will also ask you for the root user password you set.

All Versions of Ubuntu and Debian:

After installing the prereqs, we can download and install the latest OGP Web Panel DEB package:



Code:
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"








Once this is done, open the browser and go to http://{IP_OF_SERVER_OR_localhost}/index.php

You will be prompted to complete the OGP Panel installation. When asked for databse information, please use the following:

MySQL Host = "localhost"
MySQL User = "ogpuser"
MySQL Database Name = "ogp_panel"

You'll also need your database password which can be found by running the following command:



Code:
sudo cat /root/ogp_panel_mysql_info 








Once you've completed the web panel installation, you need to add the server that will be running the game servers to the web panel software. You will need the IP address of the server running the agent (127.0.0.1 if on the same machine), and the encryption key for that machine which you can obtain by running the following command on that server:


Code:
sudo cat /root/ogp_user_password 







Once the panel has been installed, please run the panel update functionality by logging in as the admin account created during installation. 

Hover over the "Administration" tab, and then click on "Update Panel" in the drop-down. Then click on the "Update" button.

[Image: img.php?v2=1&userid=21949]
#2
Good tutorial but you don't need to restart to take effect for a change in user group to sudo. Other than that good job.
Thanks to FreeVPS & Hostigation & Host4Fun for VPS 18 & VPS 4
#3
Thanks for the great tutorial, but i already installed OGP but i have problem to update it. new version available but when i try to click "Update panel" the panel take 1-2 min then page refresh but unfortunately not update.

error:
Quote:The generated URL for the download returned a bad response code
Hello! If you've a Minute so please Visit my Website PiratesHosting for a free WEB Host/GameServer.

[Image: img.php?userid=19951]


#4
(2017-12-10, 7:56:08 pm)arsalahmed786 Wrote: Thanks for the great tutorial, but i already installed OGP but i have problem to update it. new version available but when i try to click "Update panel" the panel take 1-2 min then page refresh but unfortunately not update.

error:
From which source/tutorial you had installed your open game panel?(it might be a problem).
[Image: statimg.php]

[Image: img.php?userid=17802]

My Repo: Flow Theme - Flat Theme - Password Generator - Obsidian Theme
Spoiler: show
VPS2
SPEED TEST

[Image: 4571275887.png]

VPS9
SPEED TEST

[Image: 5393259505.png]
backup - http://puu.sh/oCtEe/db3314e03d.gif
For using the above Postcounter simply copy its link and replace the userid with your once.
if you have /30 posts count slot then just add &vps2 at the last of your postcounter url.
#5
(2017-12-11, 3:37:11 am)HMR Wrote: From which source/tutorial you had installed your open game panel?(it might be a problem).

idk you helped me.

it's done now i just try again and it's done except 1 file install.php i don't think it necessary.

Hello! If you've a Minute so please Visit my Website PiratesHosting for a free WEB Host/GameServer.

[Image: img.php?userid=19951]






Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo