Advertisement
Guest User

ogpPANEL

a guest
Sep 9th, 2017
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.09 KB | None | 0 0
  1. OGP PANEL Install Instructions:
  2.  
  3. If you are running Ubuntu 14.04 or lower, run the following commands in a terminal:
  4.  
  5. Code:
  6. 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
  7.  
  8.  
  9.  
  10.  
  11. If you are running Ubuntu 16.04 or higher, run the following commands in a terminal:
  12.  
  13. Code:
  14. 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
  15.  
  16.  
  17.  
  18.  
  19. If you are running Debian 8 or lower, first make sure you have sudo installed and your user has sudo access:
  20.  
  21. If sudo is not installed automatically on your installation of Debian, switch to the root user using the below command:
  22.  
  23. Code:
  24. su root
  25.  
  26.  
  27.  
  28.  
  29. Install sudo now before proceeding:
  30.  
  31. Code:
  32. apt-get install sudo
  33.  
  34.  
  35.  
  36.  
  37. Add your user to the sudo group if you're not a member of it already:
  38.  
  39. Code:
  40. usermod -aG sudo "{REPLACE_WITH_YOUR_LINUX_USERNAME}"
  41.  
  42.  
  43.  
  44.  
  45. Restart the machine to apply the sudo group change:
  46.  
  47. Code:
  48. shutdown -r now
  49.  
  50.  
  51.  
  52.  
  53. Then, run the following commands in a terminal:
  54.  
  55. Code:
  56. 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
  57.  
  58.  
  59.  
  60.  
  61. If you're running Debian 7, it is recommended that you also change your DocumentRoot to /var/www/html by running these commands:
  62.  
  63. Code:
  64.  
  65. sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-available/default
  66. sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-available/default
  67. sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-available/default-ssl
  68. sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-enabled/000-default
  69. sudo sed -i 's#<Directory /var/www.*#<Directory /var/www/html/>#g' /etc/apache2/sites-enabled/000-default
  70. sudo sed -i 's#DocumentRoot /var/www.*#DocumentRoot /var/www/html#g' /etc/apache2/sites-enabled/000-default
  71. sudo service apache2 restart
  72.  
  73.  
  74.  
  75.  
  76.  
  77. Alternatively, you can install mariadb-server instead of mysql if you'd prefer to use that fork: (nem javaslom)
  78.  
  79. Code: (csak ha úgy érzed, de inkább NE)
  80. sudo apt-get install mariadb-server
  81.  
  82.  
  83.  
  84.  
  85. 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.
  86.  
  87. All Versions of Ubuntu and Debian:
  88.  
  89. After installing the prereqs, we can download and install the latest OGP Web Panel DEB package:
  90.  
  91. Code:
  92. wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb" -O "ogp-panel-latest.deb"
  93. sudo dpkg -i "ogp-panel-latest.deb"
  94.  
  95.  
  96.  
  97.  
  98. Once this is done, open the browser and go to http://{IP_OF_SERVER_OR_localhost}/index.php
  99.  
  100. You will be prompted to complete the OGP Panel installation. When asked for databse information, please use the following:
  101.  
  102. MySQL Host = "localhost"
  103. MySQL User = "ogpuser"
  104. MySQL Database Name = "ogp_panel"
  105.  
  106. You'll also need your database password which can be found by running the following command:
  107.  
  108. Code:
  109. sudo cat /root/ogp_panel_mysql_info
  110.  
  111.  
  112.  
  113.  
  114. 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:
  115.  
  116. Code:
  117. sudo cat /root/ogp_user_password
  118.  
  119.  
  120.  
  121.  
  122. Once the panel has been installed, please run the panel update functionality by logging in as the admin account created during installation.
  123.  
  124. Hover over the "Administration" tab, and then click on "Update Panel" in the drop-down. Then click on the "Update" button.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement