• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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