• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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