Update Automatic phpMyAdmin Q&A

Arnaud Lier 2024-05-09 20:16:00 +00:00
parent 7dda2b8fbc
commit 4608ffb0d3

@ -1,8 +1,8 @@
### Q: How can I connect with the default authentication interface of phpMyAdmin alongside the automatic connection from Pterodactyl?
With the use of `signon` for the authentication mode, it is impossible to put in addition the `cookie` mode which is the one which allows the usual connection. To solve this problem, you have to make a new connection host but not specify the authentication mode.
Example :
```PHP
Example:
```php
$i = 0;
/**
@ -10,7 +10,7 @@ $i = 0;
*/
$i++; // <- We increment of 1 the $i value, so this configuration as the ID of 1.
$cfg['Servers'][$i]['verbose'] = 'example-database';
$cfg['Servers'][$i]['host'] = 'localhost2';
$cfg['Servers'][$i]['host'] = 'localhost';
/**
* Second server used for connection with Pterodactyl
@ -23,12 +23,12 @@ $cfg['Servers'][$i]['SignonSession'] = 'TokenSession';
$cfg['Servers'][$i]['SignonURL'] = 'token.php';
$cfg['Servers'][$i]['LogoutURL'] = 'token-logout.php';
```
Now you can connect normally to your database normally.
Now you can also connect to your database with the default phpMyAdmin login form.
In this case, the phpMyAdmin Server ID field in Pterodactyl needs to be set to 2, since the ID for the connection with Pterodactyl is also 2.
### Q: Why should I put a `.` at the beginning of my domain name when my Pterodactyl and phpMyAdmin installation are on a different subdomain?
Let's say your Pterodactyl installation is on the subdomain `panel.example.xyz`, and your phpMyAdmin installation is on the subdomain `database.example.xyz`. You'll need to use `.example.xyz` as the cookie domaine in Pterodactyl and phpMyAdmin. Like this, the addon will be able to work on your two installations on two different subdomains.
Let's say your Pterodactyl installation is on the subdomain `panel.example.xyz`, and your phpMyAdmin installation is on the subdomain `database.example.xyz`. You'll need to use `.example.xyz` as the cookie domain in Pterodactyl and phpMyAdmin. Like this, the addon will be able to work on your two installations on two different subdomains.
### Q: How to generate an Encryption Key and IV?
Those encryptions keys are the most important things of the addon, they allow your installation to be secure. To generate them, you can use a password generator website like [LastPass](https://www.lastpass.com/fr/features/password-generator). For the Encryption Key, it can be as long as you want with any characters. But for the Encryption IV, it needs to be made of exactly 16 numbers.