I was on php7.4, but since composer gives me errors requiring php8, i installed php8.3, switched it in apache2, and then ran composer again to get the vendor libraries.
New test:
Take the working 1.7.17 and run composer
cd /var/www/html/ca
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
php composer.phar update
Download, uncompress and replace files with 2.0rc1
cd /var/www/html
wget https://github.com/collectiveaccess/providence/archive/refs/tags/2.0rc1a.zip
unzip 2.0rc1a.zip
cp -r providence-2.0rc1a/* ca
Result: Fatal error: Cannot declare class Hoa\Consistency\Autoloader, because the name is already in use in /var/www/html/ca/vendor/hoa/consistency/Autoloader.php on line 47
For now, my only working solution was to install deb/php8 on top of my 1.7.17, update the db, dump it, start new clean server (to take advantage of the situation and update to ubuntu 24.04 and php8.3), install 2.0rc1, import the dump, copy media directory, copy "custom" files and copy setup.php. I went for a new install since once updated, the maintenance > check configuration is giving me the error i mentioned before.