Setup of the Panels
ThemeParkPanel:
Requirements:
A webserver with:
1 MYSQL database
An SMTP mail server
PHP version 8.0.2 or higher
A Minecraft server with:
The ThemePark plugin
The ThemeParkConnector plugin
Installation on a shared hosting:
Are you using a shared webhosting? Then follow this guide. If you have your own webhosting on a server, then skip to that part.
1. Setting up the database:
Go to the homepage of DirectAdmin and go to MySQL Management. Click on Create new Database and fill in the data. Also, save this data somewhere, because you need it later.
After you've created it, you have to click on your database, and at Access Hosts, you have to put in a % and click on Add Host, so that the Minecraft server can find the database and can connect to it. This is VERY important!
Now you have to upload the SQL-file (which can be found in the Non-SSH zip), so that the plugin can upload his attractions. Open your database with PHPMyAdmin, and go to Import in the menu, and then choose the SQL-file at "File to import:". Then click on the Start button. Now it's uploaded.
2. Installing the panel to your webserver:
You need to install Filezilla or WinSCP to send the files to your webhosting. You need to install the Client. At Filezilla, click on the icon on the left (Site Manager), and click on New Site. Then fill in your credentials of the FTP server and click on Connect.
In your FTP, select your domain and put the files of the Non-SSH ZIP into your FTP.
Now copy the .env.example file and rename it to .env.
Then you have to change the settings in the .env file. Change the APP_URL to the url of your panel, and STORE_URL to the url of your store.
At DB_ you can change the database credentials of the database you created.
For the MAIL_ settings you have to create a mail account, and then lookup the SMTP server from your hosting. Ask your hosting for support if you are unable to do this.
Pay attention! Some hostings only support SSL (instead of TLS). Change the MAIL_ENCRYPTION
setting to ssl
. No encryption provided at all? Then leave the MAIL_ENCRYPTION
setting empty.
3. Rewriting users to your panel (public folder):
Because of safety, all the files who are not intended for users, are in the /public folder. This means you have to redirect the users to that folder.
There is an .htaccess file in the ZIP for this. Most of the time, this file works out of the box. It's also included below, in the case it's missing.
Source: https://gist.github.com/liaotzukai/8e61a3f6dd82c267e05270b505eb6d5a
Installation on your own server:
This chapter only applies if you have your own server! If you have no knowledge about Linux, please purchase a shared web hosting package, and follow the steps for it.
This guide assumes you are on the Ubuntu distro. Some commands may vary if you are on another Linux distribution.
1. Installation of the Webserver and database (LEMP):
We are going to use Nginx and MariaDB for the setup of ThemeParkPanel. Run the commands below in sequence.
2. Upload the files:
Connect to the SFTP of your server using your credentials. In your SFTP, move to the /var/www/themeparkpanel/
directory and put the files of the SSH ZIP into it.
Then running the following command to fix the file permissions:
3. Setting up the database:
Run the following commands step-by-step:
We need to allow external access to this database, to make sure the Minecraft server can also connect to it.
Open the /etc/mysql/mariadb.conf.d/50-server.cnf
file, and replace the following setting with this new value:
Then run systemctl restart mariadb
to restart your MariaDB server.
4. Editing the config and running installation:
Make sure you are in the correct folder.
Run the following commands:
Then change all the settings in that file. Change the APP_URL to the url of your panel, and STORE_URL to the url of your store.
At DB_ you can change the database credentials of the database you created.
For the MAIL_ settings you have to create a mail account, and then lookup the SMTP server from your hosting. Ask your hosting for support if you are unable to do this.
Pay attention! Some hostings only support SSL (instead of TLS). Change the MAIL_ENCRYPTION
setting to ssl
. No encryption provided at all? Then leave the MAIL_ENCRYPTION
setting empty.
Then run the following commands to install your panel and populate your database:
Now your database is ready for usage.
Run the next command to fix the file permissions:
5. Rewriting users to your panel (public folder):
Because of safety, all the files who are not intended for users, are in the /public folder. This means you have to redirect the users to that folder.
Please choose if you want to use SSL or not. If you want to use SSL, you can use a free Let's encrypt SSL to secure your panel. Follow the guide on the FAQ page for that.
Nginx uses config files for setup. Below is an EXAMPLE configuration, which can be used to redirect users to the /public folder, while also supporting HTTPS.
Make sure to replace %DOMAIN% (everywhere) by your full domain.
This config assumes you are using PHP 8.0. If you have another PHP version installed, please change the version on line 28.
Then you need to enable your configuration, like this:
ThemeParkPanelPlus:
1. Installing the panel:
The installation of the Plus panel is very simple! Just extract all the files of the ThemeParkPanelPlus ZIP into the main folder of the panel.
Then go to routes/web.php and add this at the bottom of the file:
2. Setting up the panel:
Open the .env file. Add this at the bottom of the file:
Change the CHANGEME to the ID that you made up in the settings.yml file of the Connector plugin.
The panel URL for the ThemeParkConnector plugin changed with the newest version of the panel. Please make sure it looks like the code below.
Last updated