vi 020-sga210.conf
a2ensite 020-sga210.conf
/etc/init.d/apache2 restart

psql -h 127.0.0.1 -u novosga21 -W -d novosga210

APP_ENV=prod
LANGUAGE=pt_BR
DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8"

' > export APP_ENV
' > export LANGUAGE DATABASE_URL
' > composer require doctrine/dbal:"2.6"
' > bin/console novosga:install
' > bin/console novosga:update
' > /etc/init.d/apache2 restart
' > > export APP_ENV
' > cd /var/www/novosga210
' > export LANGUAGE=pt_BR APP_ENV=prod
' > export LANGUAGE=pt_BR APP_ENV=prod DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8"
' > bin/console novosga:update
' > bin/console novosga:install

' > /etc/init.d/apache2 restart
' > cd /var/www/novosga210
' > bin/console novosga:websocket start
' > cd /etc/apache2/sites-enabled/
' > vi 020-sga210.conf
' >

DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8" LANGUAGE=pt_BR APP_ENV=dev APP_DEBUG=1 /var/www/novosga210/bin/console novosga:reset
DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8" LANGUAGE=pt_BR APP_ENV=dev /var/www/novosga210/bin/console novosga:reset
DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8" LANGUAGE=pt_BR APP_ENV=prod /var/www/novosga210/bin/console novosga:reset
DATABASE_URL="postgresql://novosga21:novosga21@127.0.0.1:5432/novosga210?serverVersion=13&charset=utf8" LANGUAGE=pt_BR APP_ENV=prod APP_DEBUG=1 /var/www/novosga210/bin/console novosga:reset

Quem sabe ajuda.,
Este é o .txt que tenho da instalacao ., e provavelmente foi o que mantive como memoria para uma eventualidade de ter que reinstalar o SGA .,

Considere que provavelmente esta com problerma e faltando pedaços.,
Espero que ajude.,

Sobre o composer, ., lembro que tive problema e acabei fazendo o download no /root ., e depois chamando ele no diretorio onde dei download do git .,