You should compare your config files in this case. Also, @anon55913113 may be able to advise who has to be member of group pihole. Maybe @firestorrrm's system is configured differently and PHP is using a different user? This would explain this.
The sqlite3 error showed that sqlite3 was already available for @firestorrrm even before installing the other package.