# How to Install

{% hint style="danger" %}
Before starting with installation, please make sure to backup **app**, **config**, **resources** & **routes** folders from **/var/www/pterodactyl** directory!
{% endhint %}

{% hint style="info" %}
If you encounter any issue during installation feel free to join Support Server and ask for help.
{% endhint %}

Installation is not very complicated and requires just replacing of the files & running of few commands in terminal.

## Theme Installation

{% hint style="warning" %}
Before continuing, make sure that you have all required dependencies for building assets installed - <https://pterodactyl.io/community/customization/panel.html>
{% endhint %}

1. Replace all the files from **/var/www/pterodactyl** directory with corresponding files from ZIP that you got. You should be able to just drag-and-drop folders and overwrite the theme files.
2. Add default data to database by running `php artisan migrate --path=/database/migrations/2023_08_20_112101_add_default_theme_settings_table.php`&#x20;
3. If you're using NodeJS v17+ `(node -v)`  run `export NODE_OPTIONS=--openssl-legacy-provider` command
4. Build Panel Assets by running `yarn build:production`&#x20;
5. After building is finished & if there are no errors, run `php artisan view:clear`&#x20;
6. Theme should be installed now and you should be able to access it by going to your Panel

🎊 That's it! Now you have your theme installed & ready!

{% hint style="info" %}
If you've encountered any error during the installation, you can join [Discord Support Server](https://discord.com/invite/APnKTdbM4w) where I'll assist you.&#x20;
{% endhint %}
