NEW IncrediblePBX 2026-Debian13

Since 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.
 


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
 
Since 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.
asterisk installs fine, freepbx framework errors due to the lack of support for php 8.5
 
asterisk installs fine, freepbx framework errors due to the lack of support for php 8.5
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.
 
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.

1. Install the Apache PHP Module
If you haven't already, install the specific module for version 8.2:

sudo apt install libapache2-mod-php8.2 -y

2. Disable the Default Version
Ubuntu 26.04 has a newer PHP version enabled by default. To prevent conflicts, disable the higher version (replace X.X with the default version, usually 8.5 or 9.0 on this OS):

sudo a2dismod php8.5

3. Enable PHP 8.2
Now, activate the 8.2 module and restart the web server to apply the changes:

sudo a2enmod php8.2
sudo systemctl restart apache2

4. Verify in the Browser
To confirm Apache is correctly processing PHP 8.2, create a test file:

echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.php

Visit http://your_server_ip/info.php in your browser. Look for the PHP Version 8.2.x header at the top.
 
Ondřej Surý PPA
There are two differences. The main difference is that the Freexian PHP repositories are guaranteed and officially supported, and the DEB.SURY.ORG repositories are provided on a best effort basis.

Then the technical difference is in the Debian releases supported. The Freexian PHP repositories offer packages for all Debian releases, including those who are supported through LTS and Extended LTS, and for all Ubuntu LTS releases, including those who are in Extended Service Maintenance via Ubuntu Pro. With Freexian, you are getting a broader selection of supported Debian releases.

If you are already familiar with DEB.SURY.ORG packages, you should have no trouble using Freexian PHP packages.
 
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.

php8.2 does not exist for Ubuntu 26.04 resolute, only noble or jammy.
 
Give ondrej another week or two, and this should be solved.
 
You could also do a web search for step by step commands on how to download and compile php 8.2 from source for ubuntu resolute, and Gemini AI will give you all the steps.
 
Grok.com gives working instructions for installing PHP 8.2 on Debian-13:

Update*** Even with PHP 8.2 installed on Debian-13, the IncrediblePBX install runs into many cans of worms to try and get it working. Fail2ban, NGINX, MariaDB, NodeJS, NPM, NTP issues to name just a very few problems. I messed with it for a day and have put that project on indefinite hold. Life is too short (and so is my patience.)
**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!
 
Last edited:
A few remaining issues...

1. WebMin is completely broken with Debian 13 so remove it from the /etc/apt/sources.list
2. NodeJS 20 needs to be installed BEFORE you run the FreePBX installer:
Code:
apt-get update
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
 
Last edited:
You also have to remove any references that backport things from Bullseye or Bookworm or it pulls in libraries and files that corrupt the Debian-13 installation.
 
1. WebMin is completely broken with Debian 13 so remove it from the /etc/apt/sources.list
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.
 
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.
I get all sorts of missing dependencies. Hints please.
 
To install webmin without error, you first need to run the script that setup the new repos and key, then install:

Code:
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
 

Members online

Forum statistics

Threads
26,686
Messages
174,407
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

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.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top