Update 4* — 6* MIT-MIT

Initial condition V4 MIT, resulting in V6 MIT

Log in to the server and update the repositories:

apt update

Install PHP 8.3:

apt -y install php8.3 php8.3-bcmath php8.3-cli php8.3-curl php8.3-fpm php8.3-gd php8.3-mbstring php8.3-opcache php8.3-pgsql php8.3-xml php8.3-zip php8.3-soap php8.3-ldap

Transfer the fpm pool settings to version 8.3:

rm /etc/php/8.3/fpm/pool.d/www.conf && mv /etc/php/8.0/fpm/pool.d/totum.conf /etc/php/8.3/fpm/pool.d/totum.conf && sed -i "s:php8.0:php8.3:g" /etc/php/8.3/fpm/pool.d/totum.conf && sed -i "s:php8.0:php8.3:g" /etc/nginx/sites-available/totum.online.conf && sed -i "/jit_buffer_size/d" /etc/php/8.3/fpm/pool.d/totum.conf && sed -i '/php_admin_value\[opcache.enable_cli\] = 1/d' /etc/php/8.3/fpm/pool.d/totum.conf && service php8.3-fpm restart

Add web-socket proxying to nginx settings:

nano /etc/nginx/sites-available/totum.online.conf

Insert the section before location ~* \.php$ {:

    # functionality for web sockets
    location /PRONotify {
    proxy_pass http://localhost:8181/PRONotify;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_read_timeout 600s;
    }
    # ...

Save the file Ctrl + S and restart nginx:

service nginx restart

Remove PHP 8.0:

service php8.0-fpm stop && apt -y purge php8.0 php8.0-bcmath php8.0-cli php8.0-curl php8.0-fpm php8.0-gd php8.0-mbstring php8.0-opcache php8.0-pgsql php8.0-xml php8.0-zip php8.0-soap php8.0-ldap

Remove residuals:

apt autoremove

Answer Y

apt clean

Check the PHP version:

php -v

Check the server timezone:

cat /etc/php/8.3/fpm/pool.d/totum.conf

Copy the timezone from the line php_admin_value[date.timezone] = Europe/Madid (you need to copy this part Europe/Madrid).

Update the scripts:

su totum
cd /home/totum/totum-mit

Create the file CLI.totum.php.ini (replace Europe/London with the timezone you copied in the previous step):

nano /home/totum/totum-mit/CLI.totum.php.ini
opcache.enable_cli = 1
opcache.memory_consumption = 256M
date.timezone = Europe/London
bin/totum git-update --force
exit

That's it!

We also recommend updating all packages on the server to the latest versions:

apt upgrade

If asked about local configurations, choose to keep them as they are configured for your host