installphp.info


← Back to home page

Install PHP 8.3 on Debian 10

This version of PHP is actively supported.

Good news! PHP 8.3 is being actively supported through 31 Dec 2025. After that point, it's advisable to upgrade to the latest version, since the PHP team will only offer security-related support until 31 Dec 2027, at which point PHP 8.3 will be considered "end-of-life".

Installing PHP 8.3 on Debian 10

Prerequisites

  • A Debian 10 (Buster) system with root or sudo access
  • A working internet connection
  • Basic knowledge of command-line operations

Installation

  1. Update the system packages:

    sudo apt update && sudo apt upgrade -y
  2. Install required dependencies:

    sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2
  3. Add the Sury PHP repository:

    echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
  4. Import the repository GPG key:

    wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
  5. Update package lists:

    sudo apt update
  6. Install PHP 8.3:

    sudo apt install -y php8.3
  7. Install common PHP extensions (optional):

    sudo apt install -y php8.3-cli php8.3-common php8.3-curl php8.3-mbstring php8.3-mysql php8.3-xml

Verification

  1. Check the installed PHP version:

    php -v

    The output should display PHP 8.3.x

  2. Verify PHP configuration:

    php -i

    This will show detailed PHP configuration information

  3. Check installed PHP modules:

    php -m

    This will list all installed PHP modules