Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

http error:500 after upgrade to php8.3-fpm Topic is solved

Questions related to installing, updating, setting up and configuring
Post Reply
jameslast29
Posts: 16
Joined: Fri Dec 20, 2024 11:40 am
Been thanked: 1 time

http error:500 after upgrade to php8.3-fpm

Unread post by jameslast29 »

Hello all,

First of all here is some config info:

db version: V.4.5-2024.06.09.00
file version: V.4.5-2024.06.08.10
mysql version: 8.0
php verion: 8.3
os : Debian12

So i upgraded from php8.1 to php8.3 on this Debian server with these commands:
sudo a2enconf php8.3-fpm
sudo a2enmod proxy_fcgi

The Nubuilders on ths Debian now go to http error:500
I'm pretty sure I have to add .htaccess files and add something like:

<IfModule mod_suphp.c>
AddHandler application/x-httpd-php8.3 .php
</IfModule>

or edit files in /etc/apache2
but nothing works.

Can anyone help me out?

Greetings, j.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: http error:500 after upgrade to php8.3-fpm

Unread post by Janusz »

Hello,
I did not have such error but can share some tips maybe can help.
On debian server you can keep many php versions and switch between them whenever you need.
If you use one version disable all others:

ex.: 8.2 -> 8.3

a2dismod php8.2
a2disconf php8.2-fpm
a2enmod php8.3
a2enconf php8.3-fpm
systemctl restart apache2

and to go back

a2dismod php8.3
a2disconf php8.3-fpm
a2enmod php8.2
a2enconf php8.2-fpm
systemctl restart apache2

Belowe is my typical script to install php8.3 for nubuilder
With that you can add v8.3 to the server and still keep the previous php version and switch between them (as in the example above)

PHP 8.3 installation:

echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt -y install lsb-release apt-transport-https ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

apt list --installed | grep php (zainstalowane wersje php)

apt update && apt upgrade -y
apt -y install php8.3

apt install -y php8.3-cli php8.3-fpm php8.3-pdo php8.3-mysql php8.3-mbstring php8.3-curl php8.3-xml php8.3-bcmath

apt install -y php8.3-common php8.3-xml php8.3-intl php8.3-bz2 php8.3-soap php8.3-mysql php8.3-readline php8.3-opcache php8.3-mbstring php8.3-gd php8.3-curl php8.3-pspell php8.3-sqlite3 php8.3-imap php8.3-cli php8.3-fpm php8.3-cgi php8.3-cgi-dbgsym php8.3-gmp

apt install -y libapache2-mod-php8.3

apt policy php8.3-cli

#Enable php 8.3
a2enmod php8.3
a2enmod proxy_fcgi setenvif
a2enconf php8.3-fpm
systemctl restart apache2
If you like nuBuilder, please leave a review on SourceForge
jameslast29
Posts: 16
Joined: Fri Dec 20, 2024 11:40 am
Been thanked: 1 time

Re: http error:500 after upgrade to php8.3-fpm

Unread post by jameslast29 »

Hello,

thank you, that helped.
I had not all the necsessary php8.3 packages installed.

Greetings, j.
Post Reply