Add Uninstalling Automatic phpMyAdmin for Pterodactyl
parent
18c32cdcd2
commit
2cf1c90aa2
1 changed files with 61 additions and 0 deletions
61
Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md
Normal file
61
Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md
Normal file
|
@ -0,0 +1,61 @@
|
|||
# Pterodactyl
|
||||
### Remove the changed files and replace them with the originals
|
||||
Let's start with the modified files that must be returned to their original state.
|
||||
The list below contains the file to be modified, and the attached link the original file to be used to replace the file to be modified
|
||||
|
||||
(Uninstallation instructions for Automatic-phpMyAdmin >= 2.0.0 will be done by the end of next week)
|
||||
|
||||
### For Pterodactyl 1.10 and higher (Automatic-phpMyAdmin < 2.0.0):
|
||||
- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Http/Controllers/Api/Client/Servers/DatabaseController.php)
|
||||
- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Models/Permission.php)
|
||||
- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Services/Databases/DatabaseManagementService.php)
|
||||
- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/routes/api-client.php)
|
||||
- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/resources/scripts/components/server/databases/DatabaseRow.tsx)
|
||||
- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts`
|
||||
- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php`
|
||||
|
||||
### For Pterodactyl 1.9 (Automatic-phpMyAdmin < 2.0.0):
|
||||
- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Http/Controllers/Api/Client/Servers/DatabaseController.php)
|
||||
- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Models/Permission.php)
|
||||
- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Services/Databases/DatabaseManagementService.php)
|
||||
- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/routes/api-client.php)
|
||||
- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/resources/scripts/components/server/databases/DatabaseRow.tsx)
|
||||
- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts`
|
||||
- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php`
|
||||
|
||||
### For Pterodactyl 1.8.X (Automatic-phpMyAdmin < 2.0.0):
|
||||
- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Http/Controllers/Api/Client/Servers/DatabaseController.php)
|
||||
- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Models/Permission.php)
|
||||
- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Services/Databases/DatabaseManagementService.php)
|
||||
- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/routes/api-client.php)
|
||||
- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/resources/scripts/components/server/databases/DatabaseRow.tsx)
|
||||
- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts`
|
||||
- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php`
|
||||
|
||||
### For Pterodactyl prior to 1.8 (Automatic-phpMyAdmin < 2.0.0):
|
||||
- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Http/Controllers/Api/Client/Servers/DatabaseController.php)
|
||||
- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Models/Permission.php)
|
||||
- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Services/Databases/DatabaseManagementService.php)
|
||||
- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/routes/api-client.php)
|
||||
- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/resources/scripts/components/server/databases/DatabaseRow.tsx)
|
||||
- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts`
|
||||
- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php`
|
||||
|
||||
Now that all the files modified by the addon are back to their original content, you can rebuild the panel by running these commands in your SSH terminal:
|
||||
```bash
|
||||
cd /var/www/pterodactyl
|
||||
yarn build:production
|
||||
```
|
||||
|
||||
# phpMyAdmin
|
||||
- Delete `token.php`
|
||||
- Delete `token-logout.php`
|
||||
|
||||
Don't forget to remove all these lines from every server from your config files :
|
||||
```php
|
||||
$cfg['Servers'][$i]['SignonSession'] = 'TokenSession';
|
||||
$cfg['Servers'][$i]['SignonURL'] = 'token.php';
|
||||
$cfg['Servers'][$i]['LogoutURL'] = 'token-logout.php';
|
||||
```
|
||||
|
||||
Automatic-phpMyAdmin is now uninstalled from your system.
|
Loading…
Reference in a new issue