In trying to guess in what's going on in your system, I went through the whole process of installing Suma on a different server. Skipping over Apache configuration and the installation of required modules (in my case my server was missing php7.4-mysql which caused some headscratching near the end), this is pretty much the entire series of steps on an Ubuntu server to get a basic install going (I did skip some "chown" commands to change ownership on files copied using sudo):
/* Linux Commands */
cd /var/local/
sudo wget
https://github.com/suma-project/Suma/archive/refs/heads/master.zipsudo unzip master.zip
sudo mv Suma-master suma
sudo chown -R www-data:www-data suma
cd suma
sudo mkdir /var/www/htdocs/suma
sudo ln -s service/web/ /var/www/htdocs/sumaserver
sudo ln -s web/ /var/www/htdocs/suma/client
sudo ln -s analysis/ /var/www/htdocs/suma/analysis
sudo mkdir /var/log/suma
sudo chown www-data:www-data /
mysql -u root -p
/* MySQL commands */
CREATE DATABASE suma;
CREATE USER 'sumaadmin'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'suma'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, CREATE, DROP, DELETE, UPDATE, INDEX, ALTER on suma.* TO 'sumaadmin'@'localhost';
GRANT SELECT, INSERT, UPDATE, INDEX on suma.* TO 'suma'@'localhost';
FLUSH PRIVILEGES;
\quit
/* Linux commands */
mysql -u sumaadmin -p suma < /var/local/suma/service/config/schema.sql
cd service/web/config
sudo cp config-example.yaml config.yaml
sudo nano config.yaml
/* File edits - lines changed in file*/
--
SUMA_SERVER_PATH: /var/local/suma/service
SUMA_CONTROLLER_PATH: /var/local/suma/service/controllers
--
cd ../../../web/config/
sudo cp spaceassessConfig-example.js spaceassessConfig.js
cd ../../analysis/config/
sudo cp config_example.yaml config.yaml
sudo nano config.yaml
/* File edits */
---
[change URLs and email addresses]
---
cd ../../config/
sudo cp config-example.yaml config.yaml
sudo nano config.yaml
/* File edits - lines changed in file - since MySQL was running locally I didn't need to change server address */
---
user: suma
pword: [password]
path: /var/log/suma
---
After that, going to: http://[server url]/sumaserver/admin/ and login and start editing locations.
If that's not helpful, it might help us figure out what's going wrong if you could provide a little more information about what you are seeing that makes you certain that you aren't getting a database connection. The basic installation process is (compared to many other things I've worked with) pretty simple.
Mark Swenson
IT Manager
Winnetka-Northfield Public Library District