documentation/panel/1.0/updating.html
2021-04-18 17:47:18 +00:00

93 lines
25 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Updating the Panel | Pterodactyl</title>
<meta name="generator" content="VuePress 1.8.2">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#0e4688">
<link rel="manifest" href="/favicons/site.webmanifest">
<link rel="shortcut icon" href="/favicons/favicon.ico">
<meta name="description" content="Pterodactyl is an open-source game server management panel built with PHP 7, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.">
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
<meta name="theme-color" content="#0e4688">
<link rel="preload" href="/assets/css/0.styles.b4cb0fef.css" as="style"><link rel="preload" href="/assets/js/app.edb9b012.js" as="script"><link rel="preload" href="/assets/js/4.9dfb277d.js" as="script"><link rel="preload" href="/assets/js/1.d0c981d7.js" as="script"><link rel="preload" href="/assets/js/70.bd64671b.js" as="script"><link rel="prefetch" href="/assets/js/10.27cec751.js"><link rel="prefetch" href="/assets/js/11.53217705.js"><link rel="prefetch" href="/assets/js/12.9bbfc2f6.js"><link rel="prefetch" href="/assets/js/13.bd04c4ec.js"><link rel="prefetch" href="/assets/js/14.2e96f1b8.js"><link rel="prefetch" href="/assets/js/15.a6802091.js"><link rel="prefetch" href="/assets/js/16.f2dea920.js"><link rel="prefetch" href="/assets/js/17.67e35315.js"><link rel="prefetch" href="/assets/js/18.fcb158a9.js"><link rel="prefetch" href="/assets/js/19.bb80f931.js"><link rel="prefetch" href="/assets/js/2.21e1a937.js"><link rel="prefetch" href="/assets/js/20.d065b2c5.js"><link rel="prefetch" href="/assets/js/21.abae94a8.js"><link rel="prefetch" href="/assets/js/22.3ff292b3.js"><link rel="prefetch" href="/assets/js/23.6b778859.js"><link rel="prefetch" href="/assets/js/24.18e132d5.js"><link rel="prefetch" href="/assets/js/25.5a8ed612.js"><link rel="prefetch" href="/assets/js/26.0b63e77f.js"><link rel="prefetch" href="/assets/js/27.0711df74.js"><link rel="prefetch" href="/assets/js/28.17b33d85.js"><link rel="prefetch" href="/assets/js/29.9c25f524.js"><link rel="prefetch" href="/assets/js/30.34c4472a.js"><link rel="prefetch" href="/assets/js/31.4a35c00f.js"><link rel="prefetch" href="/assets/js/32.d98a3373.js"><link rel="prefetch" href="/assets/js/33.88a8819c.js"><link rel="prefetch" href="/assets/js/34.0edc39f4.js"><link rel="prefetch" href="/assets/js/35.969d92c8.js"><link rel="prefetch" href="/assets/js/36.49b831e2.js"><link rel="prefetch" href="/assets/js/37.46d8127b.js"><link rel="prefetch" href="/assets/js/38.9d9c367c.js"><link rel="prefetch" href="/assets/js/39.4e9577b6.js"><link rel="prefetch" href="/assets/js/40.273f9b41.js"><link rel="prefetch" href="/assets/js/41.32790d14.js"><link rel="prefetch" href="/assets/js/42.d9689e6d.js"><link rel="prefetch" href="/assets/js/43.9992155a.js"><link rel="prefetch" href="/assets/js/44.e7f6dd0e.js"><link rel="prefetch" href="/assets/js/45.32b9b890.js"><link rel="prefetch" href="/assets/js/46.c04b0749.js"><link rel="prefetch" href="/assets/js/47.8a528b5d.js"><link rel="prefetch" href="/assets/js/48.0bb564a9.js"><link rel="prefetch" href="/assets/js/49.70313a9d.js"><link rel="prefetch" href="/assets/js/5.73a53d7a.js"><link rel="prefetch" href="/assets/js/50.6b4f4718.js"><link rel="prefetch" href="/assets/js/51.75e9c6d8.js"><link rel="prefetch" href="/assets/js/52.5803bd20.js"><link rel="prefetch" href="/assets/js/53.c0284790.js"><link rel="prefetch" href="/assets/js/54.14aa3f16.js"><link rel="prefetch" href="/assets/js/55.4e7ca13f.js"><link rel="prefetch" href="/assets/js/56.cbbea30d.js"><link rel="prefetch" href="/assets/js/57.b9237770.js"><link rel="prefetch" href="/assets/js/58.df220808.js"><link rel="prefetch" href="/assets/js/59.06f08aee.js"><link rel="prefetch" href="/assets/js/6.8999fd8a.js"><link rel="prefetch" href="/assets/js/60.a3853cbe.js"><link rel="prefetch" href="/assets/js/61.360ebc59.js"><link rel="prefetch" href="/assets/js/62.db0d6812.js"><link rel="prefetch" href="/assets/js/63.8a89fed0.js"><link rel="prefetch" href="/assets/js/64.8fe43c5c.js"><link rel="prefetch" href="/assets/js/65.d4df1bb2.js"><link rel="prefetch" href="/assets/js/66.6cb57e40.js"><link rel="prefetch" href="/assets/js/67.cc039676.js"><link rel="prefetch" href="/assets/js/68.0031d838.js"><link rel="prefetch" href="/assets/js/69.74d5f183.js"><link rel="prefetch" href="/assets/js/7.9f1ce256.js"><link rel="prefetch" href="/assets/js/71.f94f8363.js"><link rel="prefetch" href="/assets/js/72.be219eed.js"><link rel="prefetch" href="/assets/js/73.11b803e4.js"><link rel="prefetch" href="/assets/js/74.282a4100.js"><link rel="prefetch" href="/assets/js/75.7fd29139.js"><link rel="prefetch" href="/assets/js/76.52a50904.js"><link rel="prefetch" href="/assets/js/77.9dcea1bf.js"><link rel="prefetch" href="/assets/js/78.36c13dcb.js"><link rel="prefetch" href="/assets/js/8.4c71898e.js"><link rel="prefetch" href="/assets/js/9.7af626f7.js">
<link rel="stylesheet" href="/assets/css/0.styles.b4cb0fef.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="nav"><div class="sidebar-button block md:hidden flex-no-shrink"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <div class="logo-container"><a href="/" class="home-link router-link-active"><img src="/logos/pterry.svg" class="logo"> <span class="site-name hidden md:inline can-hide">Pterodactyl</span></a></div> <div class="w-full"><div class="flex"><div class="search-box"><input aria-label="Search" placeholder="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links flex-no-shrink hidden md:flex"><div class="nav-item"><a href="/project/introduction.html" class="nav-link">Documentation
</a></div><div class="nav-item"><a href="/community/about.html" class="nav-link">Community Guides
</a></div><div class="nav-item"><a href="https://discord.gg/pterodactyl" target="_blank" rel="noopener noreferrer" class="nav-link external">
Get Help
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://dashflo.net/docs/api/pterodactyl/v1/" target="_blank" rel="noopener noreferrer" class="nav-link external">
API
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <div class="nav-item"><a href="https://github.com/pterodactyl/panel" target="_blank" rel="noopener noreferrer" class="nav-link">
Contribute
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div></nav></div></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><nav class="nav-links flex-no-shrink block md:hidden"><div class="nav-item"><a href="/project/introduction.html" class="nav-link">Documentation
</a></div><div class="nav-item"><a href="/community/about.html" class="nav-link">Community Guides
</a></div><div class="nav-item"><a href="https://discord.gg/pterodactyl" target="_blank" rel="noopener noreferrer" class="nav-link external">
Get Help
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://dashflo.net/docs/api/pterodactyl/v1/" target="_blank" rel="noopener noreferrer" class="nav-link external">
API
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <div class="nav-item"><a href="https://github.com/pterodactyl/panel" target="_blank" rel="noopener noreferrer" class="nav-link">
Contribute
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div></nav> <ul class="sidebar-links"><li><div class="sidebar-group first"><p class="sidebar-heading open"><span>Project Information</span> <!----> <!----></p> <ul class="sidebar-group-items"><li><a href="/project/introduction.html" class="sidebar-link">Introduction</a></li><li><a href="/project/about.html" class="sidebar-link">About</a></li><li><a href="/project/terms.html" class="sidebar-link">Terminology</a></li><li><a href="/project/community.html" class="sidebar-link">Community Standards</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>Panel</span> <!----> <div tabindex="0" class="version-select custom-select float-right"><div class="selected"><div class="inline-block">
1.3
<span class="rounded-full ml-2 text-green-dark">current</span></div> <span class="arrow"></span></div> <div class="items hidden"><div class="item"><div class="inline-block">
1.3
<span class="rounded-full ml-2 text-green-dark">current</span></div></div></div></div></p> <ul class="sidebar-group-items"><li><a href="/panel/1.0/getting_started.html" class="sidebar-link">Getting Started</a></li><li><a href="/panel/1.0/webserver_configuration.html" class="sidebar-link">Webserver Configuration</a></li><li><a href="/panel/1.0/additional_configuration.html" class="sidebar-link">Additional Configuration</a></li><li><a href="/panel/1.0/updating.html" aria-current="page" class="active sidebar-link">Updating the Panel</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#panel-version-requirements" class="sidebar-link">Panel Version Requirements</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#update-dependencies" class="sidebar-link">Update Dependencies</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#fetch-updated-files" class="sidebar-link">Fetch Updated Files</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#update-dependencies-2" class="sidebar-link">Update Dependencies</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#clear-compiled-template-cache" class="sidebar-link">Clear Compiled Template Cache</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#database-updates" class="sidebar-link">Database Updates</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#set-permissions" class="sidebar-link">Set Permissions</a></li><li class="sidebar-sub-header"><a href="/panel/1.0/updating.html#restarting-queue-workers" class="sidebar-link">Restarting Queue Workers</a></li></ul></li><li><a href="/panel/1.0/troubleshooting.html" class="sidebar-link">Troubleshooting</a></li><li><a href="/panel/1.0/legacy_upgrade.html" class="sidebar-link">Legacy Upgrades</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>Wings</span> <!----> <div tabindex="0" class="version-select custom-select float-right"><div class="selected"><div class="inline-block">
1.3
<span class="rounded-full ml-2 text-green-dark">current</span></div> <span class="arrow"></span></div> <div class="items hidden"><div class="item"><div class="inline-block">
1.3
<span class="rounded-full ml-2 text-green-dark">current</span></div></div></div></div></p> <ul class="sidebar-group-items"><li><a href="/wings/1.0/installing.html" class="sidebar-link">Installing Wings</a></li><li><a href="/wings/1.0/upgrading.html" class="sidebar-link">Upgrading Wings</a></li><li><a href="/wings/1.0/migrating.html" class="sidebar-link">Migrating to Wings</a></li><li><a href="/wings/1.0/configuration.html" class="sidebar-link">Additional Configuration</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>Tutorials</span> <!----> <!----></p> <ul class="sidebar-group-items"><li><a href="/tutorials/mysql_setup.html" class="sidebar-link">Setting up MySQL</a></li><li><a href="/tutorials/creating_ssl_certificates.html" class="sidebar-link">Creating SSL Certificates</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>Guides</span> <!----> <!----></p> <ul class="sidebar-group-items"><li><a href="/guides/mounts.html" class="sidebar-link">Using Mounts</a></li></ul></div></li><li><div class="sidebar-group collapsable"><p class="sidebar-heading"><span>Development &amp; Ops</span> <span class="arrow right"></span> <!----></p> <!----></div></li></ul> </div> <div class="page"> <div class="content content__default"><h1 id="updating-the-panel"><a href="#updating-the-panel" class="header-anchor">#</a> Updating the Panel</h1> <p>This documentation covers the process for updating within the <code>1.x</code> series of releases. This means updating from
— for example — <code>1.2.2</code> to <code>1.3.0</code>. <strong>Do not use this guide for upgrading from <code>0.7</code>.</strong></p> <h2 id="panel-version-requirements"><a href="#panel-version-requirements" class="header-anchor">#</a> Panel Version Requirements</h2> <p>Each version of Pterodactyl Panel also has a corresponding minimum version of Wings that
is required for it to run. Please see the chart below for how these versions line up. In
most cases your base Wings version should match that of your Panel.</p> <table><thead><tr><th>Panel Version</th> <th>Wings Version</th> <th>Supported</th></tr></thead> <tbody><tr><td>1.0.x</td> <td>1.0.x</td> <td></td></tr> <tr><td>1.1.x</td> <td>1.1.x</td> <td></td></tr> <tr><td>1.2.x</td> <td>1.2.x</td> <td></td></tr> <tr><td><strong>1.3.x</strong></td> <td><strong>1.3.x</strong></td> <td></td></tr></tbody></table> <h2 id="update-dependencies"><a href="#update-dependencies" class="header-anchor">#</a> Update Dependencies</h2> <div class="custom-block warning"><p class="custom-block-title">Minimum PHP Version Changed</p> <p>The latest versions of Pterodactyl Panel — including the <code>1.3</code> release — require a <strong>minimum version of PHP 7.4</strong> and
Composer v2.</p></div> <ul><li>PHP <code>7.4</code> or <code>8.0</code> (recommended)</li> <li>Composer <code>2.X</code></li></ul> <p>Previous versions of Pterodactyl allowed for you to be running PHP 7.3. However, due to dependency updates and
the fact that 7.3 is now EOL we have bumped the minimum acceptable PHP version to 7.4 — PHP 8 is recommended. You
will also need to be using Composer v2.</p> <p><strong>Before continuing</strong>, please ensure that your system has been upgraded to at least PHP 7.4 by running <code>php -v</code>. You
should see output similar to the output below. If you do not see at least PHP 7.4 you will need to upgrade by following
our <a href="/guides/php_upgrade.html">PHP Upgrade Guide</a> and then return to this documentation.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>vagrant@pterodactyl:~/app$ php -v
PHP <span class="token number">8.0</span>.1 <span class="token punctuation">(</span>cli<span class="token punctuation">)</span> <span class="token punctuation">(</span>built: Jan <span class="token number">13</span> <span class="token number">2021</span> 08:22:35<span class="token punctuation">)</span> <span class="token punctuation">(</span> NTS <span class="token punctuation">)</span>
Copyright <span class="token punctuation">(</span>c<span class="token punctuation">)</span> The PHP Group
Zend Engine v4.0.1, Copyright <span class="token punctuation">(</span>c<span class="token punctuation">)</span> Zend Technologies
with Zend OPcache v8.0.1, Copyright <span class="token punctuation">(</span>c<span class="token punctuation">)</span>, by Zend Technologies
vagrant@pterodactyl:~/app$ composer --version
Composer version <span class="token number">2.0</span>.8 <span class="token number">2020</span>-12-03 <span class="token number">17</span>:20:38
</code></pre></div><h2 id="fetch-updated-files"><a href="#fetch-updated-files" class="header-anchor">#</a> Fetch Updated Files</h2> <h3 id="enter-maintenance-mode"><a href="#enter-maintenance-mode" class="header-anchor">#</a> Enter Maintenance Mode</h3> <p>Whenever you are performing an update you should be sure to place your Panel into maintenance mode. This will prevent
users from encountering unexpected errors and ensure everything can be updated before users encounter
potentially new features. Now is a good time to ensure that you're in the <code>/var/www/pterodactyl</code> directory.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>php artisan down
</code></pre></div><h3 id="download-the-update"><a href="#download-the-update" class="header-anchor">#</a> Download the Update</h3> <p>The first step in the update process is to download the new panel files from GitHub. The command below will download
the release archive for the most recent version of Pterodactyl, save it in the current directory and will automatically
unpack the archive into your current folder.</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">curl</span> -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz <span class="token operator">|</span> <span class="token function">tar</span> -xzv
</code></pre></div><p>Once all of the files are downloaded we need to set the correct permissions on the cache and storage directories to avoid
any webserver related errors.</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">chmod</span> -R <span class="token number">755</span> storage/* bootstrap/cache
</code></pre></div><h2 id="update-dependencies-2"><a href="#update-dependencies-2" class="header-anchor">#</a> Update Dependencies</h2> <p>After you've downloaded all of the new files you will need to upgrade the core components of the panel. To do this,
simply run the commands below and follow any prompts.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>composer <span class="token function">install</span> --no-dev --optimize-autoloader
</code></pre></div><h2 id="clear-compiled-template-cache"><a href="#clear-compiled-template-cache" class="header-anchor">#</a> Clear Compiled Template Cache</h2> <p>You'll also want to clear the compiled template cache to ensure that new and modified templates show up correctly for
users.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>php artisan view:clear
php artisan config:clear
</code></pre></div><h2 id="database-updates"><a href="#database-updates" class="header-anchor">#</a> Database Updates</h2> <p>You'll also need to update your database schema for the newest version of Pterodactyl. Running the command below
will update the schema and ensure the default eggs we ship are up to date (and add any new ones we might have). Just
remember, <em>never edit core eggs we ship</em>! They will be overwritten by this update process.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>php artisan migrate --seed --force
</code></pre></div><h2 id="set-permissions"><a href="#set-permissions" class="header-anchor">#</a> Set Permissions</h2> <p>The last step is to set the proper owner of the files to be the user that runs your webserver. In most cases this
is <code>www-data</code> but can vary from system to system — sometimes being <code>nginx</code>, <code>caddy</code>, <code>apache</code>, or even <code>nobody</code>.</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token comment"># If using NGINX or Apache (not on CentOS):</span>
<span class="token function">chown</span> -R www-data:www-data /var/www/pterodactyl/*
<span class="token comment"># If using NGINX on CentOS:</span>
<span class="token function">chown</span> -R nginx:nginx /var/www/pterodactyl/*
<span class="token comment"># If using Apache on CentOS</span>
<span class="token function">chown</span> -R apache:apache /var/www/pterodactyl/*
</code></pre></div><h2 id="restarting-queue-workers"><a href="#restarting-queue-workers" class="header-anchor">#</a> Restarting Queue Workers</h2> <p>After <em>every</em> update you should restart the queue worker to ensure that the new code is loaded in and used.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>php artisan queue:restart
</code></pre></div><h3 id="exit-maintenance-mode"><a href="#exit-maintenance-mode" class="header-anchor">#</a> Exit Maintenance Mode</h3> <p>Now that everything has been updated you need to exit maintenance mode so that the Panel can resume accepting
connections.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>php artisan up
</code></pre></div><h4 id="final-step-upgrade-wings"><a href="#final-step-upgrade-wings" class="header-anchor">#</a> <a href="/wings/1.0/upgrading.html">Final Step: Upgrade Wings</a></h4></div> <div class="page-edit"><div class="edit-link"><a href="https://github.com/pterodactyl/documentation/edit/master/panel/1.0/updating.md" target="_blank" rel="noopener noreferrer">Help us improve this page.</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <!----></div> <!----> </div></div><div class="global-ui"></div></div>
<script src="/assets/js/app.edb9b012.js" defer></script><script src="/assets/js/4.9dfb277d.js" defer></script><script src="/assets/js/1.d0c981d7.js" defer></script><script src="/assets/js/70.bd64671b.js" defer></script>
</body>
</html>