Although The 'server-setup.sh', Script Attempts To Install PHP 8.1.12 It Fails.
When installing Streams, the script does a very good job automating the task. However, where the script fails occurs at line 288. After the installation, the first thing I did was php -v and the response was PHP 7.4.30 (cli) (built: Jul 7 2022 15:51:43) ( NTS )
Then I ran apt update and I received the message:
GPG error: https://packages.sury.org/php
bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
The repository 'https://packages.sury.org/php bullseye InRelease' is not signed.
Updating from such a repository can't be done securely, and is therefore disabled by default.
See apt-secure(8) manpage for repository creation and user configuration details. So that's where the script failed.
However the steps I took to overcome it all was
* sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2
* echo "deb https://packages.sury.org/php/
$(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
* wget -qO - https://packages.sury.org/php/apt.gpg
| sudo apt-key add -
* apt get update
* sudo apt install php8.1
Pretty much what was in the script and that worked. From there I disabled the module php7.4 enabled module php8.1 and increased the upload limit in /etc/php/8.1/apache2/php.ini from 2M to 8M and moved on. I couldn't fix the script since I am sleep deprived but I'll try again later.
I made a copy of the /var/log/apache2/error.log
and a list
of all the packages installed, after the installation script ended