Thank you very much for your help
the sudo command was used to lace the script, but unfortunately the result is not positive, I have the error:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
here is the result of the script
I confirmed yes to all the questions
pi@home:~ $ sudo chmod +x /usr/local/bin/php-updater
pi@home:~ $ sudo php-updater 7.3 8.2
Do you want to migrate the values from the config file(s) for "php-cli"
from version 7.3 into the corresponding php.ini for version 8.2? (Y/n) y
Setting "%H:%M:%S"" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "%H:%M:%S" = %H:%M:%S"" appended to the end of /etc/php/8.2/cli/php.ini
The value for "html_errors" is not set
Do you want to set "html_errors" with the old value "On"? (Y/n) y
Setting "html_errors = On" added after line 561 in /etc/php/8.2/cli/php.ini
Setting "ibase.allow_persistent" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.allow_persistent = 1" appended to the end of /etc/php/8.2/cli/php.ini
Setting "ibase.dateformat" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.dateformat = "%Y-%m-%d"" appended to the end of /etc/php/8.2/cli/php.ini
Setting "ibase.max_links" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.max_links = -1" appended to the end of /etc/php/8.2/cli/php.ini
Setting "ibase.max_persistent" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.max_persistent = -1" appended to the end of /etc/php/8.2/cli/php.ini
Setting "ibase.timeformat" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.timeformat = "%H:%M:%S"" appended to the end of /etc/php/8.2/cli/php.ini
Setting "ibase.timestampformat" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.timestampformat = "%Y-%m-%d" appended to the end of /etc/php/8.2/cli/php.ini
Setting "log_errors_max_len" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "log_errors_max_len = 1024" appended to the end of /etc/php/8.2/cli/php.ini
Setting "uploadtmp_dir" not found in /etc/php/8.2/cli/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "uploadtmp_dir = /media/myCloudDrive/ncdata/tmp" appended to the end of /etc/php/8.2/cli/php.ini
Do you want to migrate the values from the config file(s) for "php-fpm"
from version 7.3 into the corresponding php.ini for version 8.2? (Y/n) y
The value for "disable_functions" differs: new value ""
Do you want to set "disable_functions" to the old value "pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,"? (Y/n) y
Changed disable_functions from "" to "pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,"
Setting "%H:%M:%S"" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "%H:%M:%S" = %H:%M:%S"" appended to the end of /etc/php/8.2/fpm/php.ini
The value for "html_errors" is not set
Do you want to set "html_errors" with the old value "On"? (Y/n) y
Setting "html_errors = On" added after line 562 in /etc/php/8.2/fpm/php.ini
Setting "ibase.allow_persistent" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.allow_persistent = 1" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "ibase.dateformat" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.dateformat = "%Y-%m-%d"" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "ibase.max_links" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.max_links = -1" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "ibase.max_persistent" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.max_persistent = -1" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "ibase.timeformat" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.timeformat = "%H:%M:%S"" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "ibase.timestampformat" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "ibase.timestampformat = "%Y-%m-%d" appended to the end of /etc/php/8.2/fpm/php.ini
Setting "log_errors_max_len" not found in /etc/php/8.2/fpm/php.ini
Do you want to append it to the end of the file? (Y/n) y
Setting "log_errors_max_len = 1024" appended to the end of /etc/php/8.2/fpm/php.ini
The value for "sys_temp_dir" is not set
Do you want to set "sys_temp_dir" with the old value "/media/myCloudDrive/ncdata/tmp"? (Y/n) y
Setting "sys_temp_dir = /media/myCloudDrive/ncdata/tmp" added after line 776 in /etc/php/8.2/fpm/php.ini
The value for "upload_tmp_dir" is not set
Do you want to set "upload_tmp_dir" with the old value "/media/myCloudDrive/ncdata/tmp"? (Y/n) y
Setting "upload_tmp_dir = /media/myCloudDrive/ncdata/tmp" added after line 854 in /etc/php/8.2/fpm/php.ini
Do you want to migrate the values from the config file "pool.d/www.conf" for "fpm"
from version 7.3 into the corresponding "pool.d/www.conf" for version 8.2? (Y/n) y
The value for "pm" differs: new value "dynamic"
Do you want to set "pm" to the old value "static"? (Y/n) y
Changed pm from "dynamic" to "static"
The value for "pm.max_children" differs: new value "5"
Do you want to set "pm.max_children" to the old value "39"? (Y/n) y
Changed pm.max_children from "5" to "39"
The value for "pm.start_servers" differs: new value "2"
Do you want to set "pm.start_servers" to the old value "4"? (Y/n) y
Changed pm.start_servers from "2" to "4"
The value for "pm.min_spare_servers" differs: new value "1"
Do you want to set "pm.min_spare_servers" to the old value "4"? (Y/n) y
Changed pm.min_spare_servers from "1" to "4"
The value for "pm.max_spare_servers" differs: new value "3"
Do you want to set "pm.max_spare_servers" to the old value "8"? (Y/n) y
Changed pm.max_spare_servers from "3" to "8"
The value for "pm.max_children" is not set
Do you want to set "pm.max_children" with the old value "39"? (Y/n) y
Setting "pm.max_children = 39" added after line 111 in /etc/php/8.2/fpm/pool.d/www.conf
The value for "pm.max_spare_servers" is not set
Do you want to set "pm.max_spare_servers" with the old value "8"? (Y/n) y
Setting "pm.max_spare_servers = 8" added after line 103 in /etc/php/8.2/fpm/pool.d/www.conf
The value for "pm.min_spare_servers" is not set
Do you want to set "pm.min_spare_servers" with the old value "4"? (Y/n) y
Setting "pm.min_spare_servers = 4" added after line 99 in /etc/php/8.2/fpm/pool.d/www.conf
The value for "pm.start_servers" is not set
Do you want to set "pm.start_servers" with the old value "4"? (Y/n) y
Setting "pm.start_servers = 4" added after line 98 in /etc/php/8.2/fpm/pool.d/www.conf
The value for "pm.status_path" is not set
Do you want to set "pm.status_path" with the old value "/status"? (Y/n) y
Setting "pm.status_path = /status" added after line 267 in /etc/php/8.2/fpm/pool.d/www.conf
The value for "slowlog" is not set
Do you want to set "slowlog" with the old value "log/$pool.log.slow"? (Y/n) y
Setting "slowlog = log/$pool.log.slow" added after line 385 in /etc/php/8.2/fpm/pool.d/www.conf
pi@home:~ $ for linkgroup in `ls /var/lib/dpkg/alternatives/ | grep -E "ph(ar|p)"`; do sudo update-alternatives --config $linkgroup; done
Il existe 2 choix pour l'alternative phar (qui fournit /usr/bin/phar).
SĂ©lection Chemin PrioritĂ© Ătat
------------------------------------------------------------
* 0 /usr/bin/phar8.2 82 mode automatique
1 /usr/bin/phar7.3 73 mode manuel
2 /usr/bin/phar8.2 82 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
Il existe 2 choix pour l'alternative phar.phar (qui fournit /usr/bin/phar.phar).
SĂ©lection Chemin PrioritĂ© Ătat
------------------------------------------------------------
* 0 /usr/bin/phar.phar8.2 82 mode automatique
1 /usr/bin/phar.phar7.3 73 mode manuel
2 /usr/bin/phar.phar8.2 82 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
Il existe 2 choix pour l'alternative php (qui fournit /usr/bin/php).
SĂ©lection Chemin PrioritĂ© Ătat
------------------------------------------------------------
* 0 /usr/bin/php8.2 82 mode automatique
1 /usr/bin/php7.3 73 mode manuel
2 /usr/bin/php8.2 82 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
Il n'existe qu'une « alternative » dans le groupe de liens phpdbg (qui fournit /usr/bin/phpdbg) : /usr/bin/phpdbg8.2
Rien Ă configurer.
Il existe 2 choix pour l'alternative php-fpm.sock (qui fournit /run/php/php-fpm.sock).
SĂ©lection Chemin PrioritĂ© Ătat
------------------------------------------------------------
* 0 /run/php/php8.2-fpm.sock 82 mode automatique
1 /run/php/php7.3-fpm.sock 73 mode manuel
2 /run/php/php8.2-fpm.sock 82 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
pi@home:~ $