Error: PHP-8_2 backend template doesn't exist

I have upgraded all my websites to PHP 8.3. I disabled PHP 8.2 from the /edit/server/ page, and the system PHP version is now set to 8.3. In the package settings, the “Backend Template” option is set to “default.”

All my sites are currently running smoothly on PHP 8.3.
However, when I try to add a new domain, I get the following error:
“Error: PHP-8_2 backend template doesn’t exist.”

I have already rebuilt everything.
Even though PHP 8.2 is no longer on the server, this issue still persists.

I can resolve the problem by changing the package setting from “default” to “PHP-8_3.”
I just wanted to report this issue in case it’s a bug.

Could you please show the output of these commands?

Note: replace PACKAGE with the actual package name.

cat -A /usr/local/hestia/data/packages/PACKAGE.pkg
cat -A /usr/local/hestia/data/templates/web/php-fpm/PACKAGE.tpl

Output of “cat -A /usr/local/hestia/data/packages/default.pkg”

root@myhostname:~# cat -A /usr/local/hestia/data/packages/default.pkg
WEB_TEMPLATE='default'$
PROXY_TEMPLATE='default'$
BACKEND_TEMPLATE='PHP-8_2'$
DNS_TEMPLATE='default'$
WEB_DOMAINS='unlimited'$
WEB_ALIASES='unlimited'$
DNS_DOMAINS='unlimited'$
DNS_RECORDS='unlimited'$
MAIL_DOMAINS='unlimited'$
MAIL_ACCOUNTS='unlimited'$
RATE_LIMIT='200'$
DATABASES='unlimited'$
CRON_JOBS='unlimited'$
DISK_QUOTA='unlimited'$
CPU_QUOTA='unlimited'$
CPU_QUOTA_PERIOD='unlimited'$
MEMORY_LIMIT='unlimited'$
SWAP_LIMIT='unlimited'$
BANDWIDTH='unlimited'$
NS='ns1.myhostname.net,ns2.myhostname.net'$
SHELL='sh'$
BACKUPS='15'$
BACKUPS_INCREMENTAL='no'$
TIME='11:11:27'$
DATE='2025-03-19'$
$

Output of “cat -A /usr/local/hestia/data/templates/web/php-fpm/default.tpl”

root@myhostname:~# cat -A /usr/local/hestia/data/templates/web/php-fpm/default.tpl
; origin-src: deb/templates/web/php-fpm/default.tpl$
;#=========================================================================#$
;# Default Web Domain Template                                             #$
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS   #$
;# https://hestiacp.com/docs/server-administration/web-templates.html      #$
;#=========================================================================#$
$
$
$
[%backend%]$
listen = /run/php/php%backend_version%-fpm-%domain%.sock$
listen.owner = %user%$
listen.group = www-data$
listen.mode = 0660$
$
user = %user%$
group = %user%$
$
pm = ondemand$
pm.max_children = 8$
pm.max_requests = 4000$
pm.process_idle_timeout = 10s$
pm.status_path = /status$
$
php_admin_value[upload_tmp_dir] = /home/%user%/tmp$
php_admin_value[session.save_path] = /home/%user%/tmp$
php_admin_value[open_basedir] = /home/%user%/.composer:/home/%user%/web/%domain%/public_html:/home/%user%/web/%domain%/private:/home/%user%/web/%domain%/public_shtml:/home/%user%/tmp:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt$
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@%domain%$
$
env[HOSTNAME] = $HOSTNAME$
env[PATH] = /usr/local/bin:/usr/bin:/bin$
env[TMP] = /home/%user%/tmp$
env[TMPDIR] = /home/%user%/tmp$
env[TEMP] = /home/%user%/tmp$

That is not the default value used by Hestia (the default is default), so it seems you changed it manually. To fix it, edit the default package from the Web UI and set the Backend Template to default.

imagen

Also, double check that the default php version is not set to 8.2:

v-list-default-php
1 Like

Great. Thank you so much.

It was “Default” already on Edit Package page. I just clicked save button. After I saved BACKEND_TEMPLATE=‘PHP-8_2’$ turned to BACKEND_TEMPLATE=‘default’$
And yes v-list-default-php result is VERSION 8.3.

2 Likes