12-06-2024, 05:18 PM
Run:
bash
Copy code
sudo apt update && sudo apt upgrade -y
2. Install Required Dependencies
For Debian/Ubuntu:
bash
Copy code
sudo apt install apache2 mariadb-server php php-mysql php-xml php-mbstring git -y
For CentOS:
bash
Copy code
sudo yum install httpd mariadb-server php php-mysqlnd php-xml php-mbstring git -y
Start and enable Apache and MariaDB:
bash
Copy code
sudo systemctl start apache2 mariadb
sudo systemctl enable apache2 mariadb
3. Download OGP Panel
Clone the repository:
bash
Copy code
git clone https://github.com/OpenGamePanel/OGP-Website.git /var/www/html/ogp
4. Set File Permissions
Adjust ownership:
bash
Copy code
sudo chown -R www-data:www-data /var/www/html/ogp
Set permissions:
bash
Copy code
sudo chmod -R 755 /var/www/html/ogp
5. Configure MariaDB
Secure MariaDB:
bash
Copy code
sudo mysql_secure_installation
Create a database for OGP:
bash
Copy code
mysql -u root -p
CREATE DATABASE ogp;
CREATE USER 'ogpuser'@'localhost' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON ogp.* TO 'ogpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
6. Configure OGP
Access OGP via your domain or IP: http://<your_ip>/ogp.
Follow the web-based setup wizard to connect the database and complete the configuration.
7. Install Agent
Install the OGP Agent for managing game servers:
bash
Copy code
wget https://github.com/OpenGamePanel/OGP-Age...master.zip
unzip master.zip
cd OGP-Agent-Linux-master
sudo bash install.sh
bash
Copy code
sudo apt update && sudo apt upgrade -y
2. Install Required Dependencies
For Debian/Ubuntu:
bash
Copy code
sudo apt install apache2 mariadb-server php php-mysql php-xml php-mbstring git -y
For CentOS:
bash
Copy code
sudo yum install httpd mariadb-server php php-mysqlnd php-xml php-mbstring git -y
Start and enable Apache and MariaDB:
bash
Copy code
sudo systemctl start apache2 mariadb
sudo systemctl enable apache2 mariadb
3. Download OGP Panel
Clone the repository:
bash
Copy code
git clone https://github.com/OpenGamePanel/OGP-Website.git /var/www/html/ogp
4. Set File Permissions
Adjust ownership:
bash
Copy code
sudo chown -R www-data:www-data /var/www/html/ogp
Set permissions:
bash
Copy code
sudo chmod -R 755 /var/www/html/ogp
5. Configure MariaDB
Secure MariaDB:
bash
Copy code
sudo mysql_secure_installation
Create a database for OGP:
bash
Copy code
mysql -u root -p
CREATE DATABASE ogp;
CREATE USER 'ogpuser'@'localhost' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON ogp.* TO 'ogpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
6. Configure OGP
Access OGP via your domain or IP: http://<your_ip>/ogp.
Follow the web-based setup wizard to connect the database and complete the configuration.
7. Install Agent
Install the OGP Agent for managing game servers:
bash
Copy code
wget https://github.com/OpenGamePanel/OGP-Age...master.zip
unzip master.zip
cd OGP-Agent-Linux-master
sudo bash install.sh