• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Auto-create databases using PHP

FlyingParrot

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.69 #2
Hey,

is there any way to auto-create postgresql databases using php? I'm developing a multi-tenancy-software and it's required to create databases for each tenant they need one. How do I configure that in Plesk? Is that even possible?
I'm getting the php error "SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied to create database" but I couldn't find any settings for this in plesk. Maybe it's possible manually via SSH?

Thanks.
 
Back
Top