PHP 8.5.2
PHP was updated to the 8.5.2 upstream version. Among other enhancements and bugfixes, the highlighted changes are:
- A new URI Extension
- The Pipe Operator
- Clone With functionality
- The <span>#[\NoDiscard]</span> Attribute
- Closures and First-Class Callables in Constant Expressions
- Persistent <span>cURL</span> Share Handles
- <span>array_first()</span> and <span>array_last()</span> functions
asterisk installs fine, freepbx framework errors due to the lack of support for php 8.5Since it is based on Debian-13, it ain't gonna work. PHP version is the main killer. Remember that neither FreePBX-17 nor IncrediblePBX run on Debian-13. When Sangoma gets around to FreePBX-18 running on current PHP and Debian-13, then Ubuntu 26.04 might have a chance.
As expected. If you find a backport to php 8.1 or 8.2, you might make it work with FreePBX but it is not a supported configuration.asterisk installs fine, freepbx framework errors due to the lack of support for php 8.5
sudo apt update && sudo apt upgrade -y sudo apt install software-properties-common -y sudo add-apt-repository ppa:ondrej/php -y sudo apt update sudo apt install php8.2 php8.2-cli php8.2-common php8.2-mysql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php8.2-bcmath -y sudo apt install libapache2-mod-php8.2 sudo a2enmod php8.2 sudo systemctl restart apache2 sudo apt install php8.2-fpm sudo systemctl start php8.2-fpm php -v sudo update-alternatives --set php /usr/bin/php8.2sudo apt install libapache2-mod-php8.2 -ysudo a2dismod php8.5sudo a2enmod php8.2sudo systemctl restart apache2echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.phphttp://your_server_ip/info.php in your browser. Look for the PHP Version 8.2.x header at the top.Ondřej Surý PPA
To install PHP 8.2 on Ubuntu 26.04, you must use the Ondřej Surý PPA, as Ubuntu 26.04 typically ships with PHP 8.5 or higher as the default.
Installation Steps
Update Your System
sudo apt update && sudo apt upgrade -y
Add the PHP Repository
Install the necessary dependencies and add the PPA maintained by Ondřej Surý, which contains various PHP versions for Ubuntu:
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
Install PHP 8.2 and Core Extensions
Install the base PHP 8.2 package along with common modules needed for most web applications:
sudo apt install php8.2 php8.2-cli php8.2-common php8.2-mysql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php8.2-bcmath -y
Install Web Server Specific Packages
Depending on your web server, you will need one of the following:
For Apache: Use the Apache PHP module:
sudo apt install libapache2-mod-php8.2
sudo a2enmod php8.2
sudo systemctl restart apache2
For Nginx: Use PHP-FPM:
sudo apt install php8.2-fpm
sudo systemctl start php8.2-fpm
Verify the Installation
Check the active PHP version in your terminal:
php -v
Managing Multiple PHP Versions
If Ubuntu 26.04 already has a default PHP version (e.g., PHP 8.5), you can switch the command-line default to version 8.2 using the update-alternatives tool:
sudo update-alternatives --set php /usr/bin/php8.2
To set up PHP 8.2 with Apache on Ubuntu 26.04, you’ll need to disable any pre-installed PHP versions (like the default PHP 8.5+) and enable the 8.2 module.
Yup. Thus FreePBX cannot run on it.php8.2 does not exist for Ubuntu 26.04 resolute, only noble or jammy.
**Debian 13 (Trixie) ships with PHP 8.4 by default.** PHP 8.2 is **not available** in the official Debian repositories, so you need to add the well-maintained **deb.sury.org** repository (Ondřej Surý’s PHP packages).
### 1. Update your system
```bash
sudo apt update && sudo apt upgrade -y
```
### 2. Add the Sury PHP repository (for Debian 13)
```bash
sudo apt install ca-certificates curl -y
# Download the signing key
sudo curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
# Add the repository (DEB822 format)
CODENAME=$(. /etc/os-release && echo "$VERSION_CODENAME")
ARCH=$(dpkg --print-architecture)
cat <<EOF | sudo tee /etc/apt/sources.list.d/php.sources
Types: deb
URIs: https://packages.sury.org/php/
Suites: ${CODENAME}
Components: main
Architectures: ${ARCH}
Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg
EOF
```
### 3. Update package list and install PHP 8.2
```bash
sudo apt update
```
**Basic installation (CLI + common tools):**
```bash
sudo apt install php8.2 php8.2-cli php8.2-common
```
**For web servers:**
- **Apache + mod_php** (simplest):
```bash
sudo apt install libapache2-mod-php8.2
sudo systemctl restart apache2
```
- **Apache + PHP-FPM** (recommended for multiple versions):
```bash
sudo apt install php8.2-fpm libapache2-mod-fcgid
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php8.2-fpm
sudo systemctl enable --now php8.2-fpm
sudo systemctl restart apache2
```
- **Nginx + PHP-FPM**:
```bash
sudo apt install php8.2-fpm
sudo systemctl enable --now php8.2-fpm
```
Then configure your site to use `fastcgi_pass unix:/run/php/php8.2-fpm.sock;`
### 4. Install useful extensions
```bash
sudo apt install php8.2-{curl,mysql,gd,mbstring,xml,zip,intl,bcmath,opcache,imagick,redis,memcached,soap}
```
### 5. Verify installation
```bash
php8.2 --version
php8.2 -m # list loaded modules
```
### Optional: Set PHP 8.2 as the default CLI version
```bash
sudo update-alternatives --config php
```
### Notes
- PHP 8.2 receives security updates until **December 2026**.
- You can install multiple PHP versions side-by-side (e.g., 8.2, 8.3, 8.4) without conflict.
- Configuration files are located in `/etc/php/8.2/`.
- Always test your applications after switching PHP versions.
This is the standard and most reliable method on Debian 13. Let me know if you need help with a specific web server or extensions!
apt-get update
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
How is webmin broken on Debian 13? All that I noticed is that it requires its repository to be adjusted to the new format, then it installs fine. And pretty much every functionality built in works well too.1. WebMin is completely broken with Debian 13 so remove it from the /etc/apt/sources.list
I get all sorts of missing dependencies. Hints please.How is webmin broken on Debian 13? All that I noticed is that it requires its repository to be adjusted to the new format, then it installs fine. And pretty much every functionality built in works well too.
curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh
sudo apt update
sudo apt install webmin
Link up your team and customers Phone System
Live Chat
Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.