Update Automatic phpMyAdmin for Pterodactyl

Arnaud Lier 2024-03-30 13:46:07 +00:00
parent 3da66a59f2
commit 66d5eb7a52

@ -79,18 +79,18 @@ $cfg['Servers'][$i]['SignonURL'] = 'token.php';
$cfg['Servers'][$i]['LogoutURL'] = 'token-logout.php'; $cfg['Servers'][$i]['LogoutURL'] = 'token-logout.php';
``` ```
You can now edit the file token.php that you just uploaded to your needs : You can now edit the file `token.php` that you just uploaded, to fit your needs :
1. `$encryption_key` (line 14) and `$encryption_iv` (line 16) : These variables must have the same values set in the Pterodactyl side (More information on how to generate theses [here](https://github.com/AktiCube/themes-and-addons-documentation/wiki/Q&A-(Automatic-phpMyAdmin)#q-how-to-generate-an-encryption-key-and-iv--)). 1. `$encryption_key` (line 14) and `$encryption_iv` (line 16) : These variables must have the same values set in the Pterodactyl side (More information on how to generate these [here](https://github.com/AktiCube/themes-and-addons-documentation/wiki/Q&A-(Automatic-phpMyAdmin)#q-how-to-generate-an-encryption-key-and-iv--)).
2. `$cookie_name` (line 18) : The name of the cookie to get data from, must be the same as in Pterodactyl side. 2. `$cookie_name` (line 18) : The name of the cookie to get data from, must be the same as in Pterodactyl side.
3. `$cookie_domain` (line 20) : The domain of the cookie, like the cookie name, must be the same as in Pterodactyl side (More information on how to choose one [here](https://github.com/AktiCube/themes-and-addons-documentation/wiki/Q&A-(Automatic-phpMyAdmin)#q-why-should-i-put-a--at-the-beginning-of-my-domain-name-when-my-pterodactyl-and-phpmyadmin-installation-are-on-a-different-subdomain)). 3. `$cookie_domain` (line 20) : The domain of the cookie, like the cookie name, must be the same as in Pterodactyl side (More information on how to choose one [here](https://github.com/AktiCube/themes-and-addons-documentation/wiki/Q&A-(Automatic-phpMyAdmin)#q-why-should-i-put-a--at-the-beginning-of-my-domain-name-when-my-pterodactyl-and-phpmyadmin-installation-are-on-a-different-subdomain)).
# Configuration # Configuration
Go to your admin part of your Pterodactyl Installation, then in the "Automatic-phpMyAdmin" category, click on create a new installation. Go to your admin part of your Pterodactyl Installation, then in the "Automatic phpMyAdmin" category, click on create a new installation.
Choose a name and a description. Then, for the URL, it needs to be the one of your phpMyAdmin installation. For the cookie name, it needs to be the same as configured in the token.php file of your phpMyAdmin installation, same for the cookie_domain, the encryption key and the encryption iv. Choose a name and a description. Then, for the URL, it needs to be the one of your phpMyAdmin installation. For the cookie name, it needs to be the same as configured in the `token.php` file of your phpMyAdmin installation, same for the `cookie_domain`, the `encryption_key` and the `encryption_iv`.
When the selected Database Host is none, this phpMyAdmin installation will be used for every Database Host when clicking on the button to connect to the database. But when there is one selected, it'll be this one that will be used when connecting to a database of this host. When the selected Database Host is none, this phpMyAdmin installation will be used for every Database Host when clicking on the button to connect to the database. But when there is one selected, it'll be this one that will be used when connecting to a database of this host.
Finally, for the phpMyAdmin Server ID, in most cases it'll need to be set to `1`. But if you are using a normal connection on phpMyAdmin like said [here](https://github.com/AktiCube/themes-and-addons-documentation/wiki/Q&A-(Automatic-phpMyAdmin)#q-how-can-i-connect-with-the-basic-interface-of-phpmyadmin-), you'll need to change that number to the corresponding configuration in phpMyAdmin. You can now save this installation ! Finally, for the phpMyAdmin Server ID, in most cases it'll need to be set to `1`. But if you are using a normal connection on phpMyAdmin like said [here](https://git.ric-rac.org/ArnaudLier/addons-documentation/wiki/Automatic-phpMyAdmin-Q%26A#q-how-can-i-connect-with-the-default-authentication-interface-of-phpmyadmin-alongside-the-automatic-connection-from-pterodactyl), you'll need to change that number to the corresponding configuration in phpMyAdmin. You can now save this installation!
The addon is now fully configured. You can use it perfectly. The addon is now fully configured. Go to the "Databases" tab of any of your server with an active database and click the button to access your data right away!