Error: syntax error, unexpected ‘Config’ (T_STRING), expecting ‘]’

There is an issue with your php not being able to connect to mysql.
Unfortunately this is a bit out of scope of the support we provide. I advice having a look at other tutorials on internet to setup a LAMP server on Ubuntu, as there a lot of resources available to do that.
Otherwise you can try to install passbolt using the docker image.