Hi all,
I’m trying to install the Squiz on my local ubantu VM and getting the below error. Not finding any options to resolve this so posting to this forum so if anyone has had this, please share how to resolve this,
root@sysadmin-VirtualBox:/var/www/squiz_matrix# su - squiz -c “cd /var/www/squiz_matrix; php install/step_02.php /var/www/squiz_matrix”
Fatal error: Uncaught exception ‘Exception’ with message: 'Could not create database connection: DBError!:could not find driverroot@sysadmin-VirtualBox:/var/www/squiz_matrix#
It is PostgreSQL 10.0 and the install was without any errors. When using psql, I can connect to the database successfully.
All the files and directories are owned by the user squiz and the step_02.php is being run as that user like you have mentioned above. Should that be changed to www-data?
This error went away after updating the drivers for PHP as suggested but then it failed on step 3 saying that the installation had some remnants from a previous install.
So I removed the install, dropped the database and started over again. Now on the step 2 I get the below error.
/var/www/squiz_matrix$ php install/step_02.php /var/www/squiz_matrix
Fatal error: Uncaught exception ‘Exception’ with message: 'Could not create database connection: DBError!:invalid data source name
The db_inc file has all the definitions in there. What could be missing here?