Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ Jexpanel is a *hyperfast, clean and intricate* fullstack web application built u
Want to install Jexpanel? Here are the options to get the ball rolling:

- If you are **installing from scratch**, follow the [**Fresh Install Documentation**](/docs/category/install---from-scratch)

- If you plan to **migrate from Pterodactyl v1.x**, follow the [**Pterodactyl Migration**](/docs/migrate/pterodactyl.mdx)

- If you plan to **migrate from Jexactyl v3.x**, follow the [**Jexactyl Migration**](/docs/migrate/jexactyl.mdx)

- If you plan to **migrate from Pterodactyl v1.x**, follow the **Pterodactyl Migration** (coming soon)

- If you plan to **migrate from Jexactyl v3.x**, follow the [**Jexactyl Migration**](/docs/migrate/jexactyl)

## Support us!

Expand Down
3 changes: 1 addition & 2 deletions docs/migrate/_category_.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
"link": {
"type": "generated-index"
}
}

}
4 changes: 4 additions & 0 deletions docs/migrate/jexactyl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ sidebar_position: 1

This guide is for migrating from Jexactyl v3 -> Jexpanel v4.

:::tip
If you prefer an **automatic migration**, you can use the following command: `bash <(curl -s http://jexactyl.freeutka.xyz/migrate.sh)`
:::

:::danger
These instructions are ONLY for people moving from Jexactyl v3.x to Jexpanel v4.
Check the sidebar if you wish to upgrade your existing instance or migrate your data from another panel.
Expand Down
87 changes: 87 additions & 0 deletions docs/migrate/pterodactyl.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
sidebar_position: 2
---

# Migrate from Pterodactyl v1.x

This guide is for migrating from **Pterodactyl v1.x → Jexpanel v4**.

### Enter maintenance mode

To keep the panel's integrity, put the app into maintenance mode so no one can access it.

```bash
php /var/www/pterodactyl/artisan down
```

### Download and extract update

```bash
cd /var/www/pterodactyl
# Download file archive from GitHub
curl -Lo panel.tar.gz https://github.com/jexactyl/jexactyl/releases/download/v4.0.0-rc2/panel.tar.gz

# Extract the archive
tar -xzvf panel.tar.gz
rm panel.tar.gz

# Give certain folders higher permissions for access
chmod -R 755 storage/* bootstrap/cache/
```

### Update dependencies

```bash
# Delete old vendor files
rm -r vendor
rm app/Console/Commands/Environment/EmailSettingsCommand.php
# Install new dependencies
composer install --no-dev --optimize-autoloader
```

### Clear application cache

```bash
php artisan optimize:clear
```

### Edit database fields

```bash
# Replace 'panel' with the name of your database if needed
mysqldump panel > /var/www/pterodactyl/backup.sql

# Enter MySQL console and make changes
mysql -u root -p
USE panel;
DROP TABLE theme;
ALTER TABLE nodes DROP COLUMN deployable;
exit;
```

Then, once this is complete, we can migrate the new database changes.

### Migrate database changes

```bash
php artisan migrate --seed --force
```

### Set webserver permissions

```bash
# If using NGINX or Apache (not on CentOS)
chown -R www-data:www-data /var/www/pterodactyl/*

# If using NGINX on CentOS
chown -R nginx:nginx /var/www/pterodactyl/*

# If using Apache on CentOS
chown -R apache:apache /var/www/pterodactyl/*
```

### Exit maintenance mode

```bash
php artisan up
```