# Upgrading PHP

This documentation includes instructions for upgrading your system to the latest version of PHP. Please reference the table below to check what version you need for your version of Pterodactyl.

Panel Version PHP Version
1.0.0 - 1.2.0 7.3, 7.4
1.3.0+ 7.4, 8.0

# Install PHP

In order to install PHP 8.0, you will need to run the following command. Please keep in mind different operating systems may have slightly different requirements for how this command is formatted.

# Add additional repository for PHP
add-apt-repository -y ppa:ondrej/php
apt -y update
apt -y install php8.0 php8.0-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}

# Update Composer

As of [email protected] we require composer v2. To update composer you will need to run the following command which will perform the composer self-update process and move you over to version 2.

composer self-update --2

# Webserver Configuration

    # Return to the 1.X.X Upgrade Guide