Ubuntu - Hosting
#1

So I'm trying to host a server, and I managed to unpack and edit the configuration file, but I can't get the system to open up samp03svr. I tried doing it through root but it still said permission denied.
Reply
#2

Ok, I prefer you to install OpenGamePanel which will make it much more easier so reinstall your VPS and then follow this guide.

Installing


OGP Agent

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 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
sudo apt-get install libgcc1:i386
sudo apt-get install lib32gcc1
sudo apt-get install libhttp-daemon-perl
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
You'll need the encryption key for the panel.


OGP Panel

OGP PANEL Install Instructions:

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

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 php-bcmath
If you are running Ubuntu 18.04 or higher, run the following commands in a terminal:

Code:
sudo 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 phpmyadmin mysql-server php7.2-mbstring php-gettext git php-bcmath
After installing the prereqs, make sure the root MySQL account has been setup by running this command (may not apply to older versions of Ubuntu):

Code:
sudo mysql_secure_installation
Be sure to write down the root password somewhere, as it will be used in the next step!

Now, 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
Here you go!

Source: https://opengamepanel.org
Reply
#3

or how about you just chmod +x samp03svr
or use linuxgsm

my reasoning for this is that open game panel is not compatible with a vps that has vestacp installed, so if you ever decide to do webshosting gl :joy:
Reply
#4

So I did managed to start the server and it did tell me that the server has started on port 7777, but I can't ping it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)