Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eggplantSword's avatar

Tenancy for Laravel setup on cPanel

How can I correctly configure this library https://tenancyforlaravel.com/docs/v3/introduction/ to work on a dedicated server? I uploaded my project but when I try to create a tenant it gets stuck and never completes it. I think it's getting stuck when trying to create the new database.

I created my MySQL db along with a user that I added all permissions (I did this directly from cPanel), I also created a wildcard subdomain. But it's still not working, it seems to only add the tenant itself and then stops without any visible errors anywhere.

My subdomains are like this central: 'sam.btl.com' and the wildcard one is like: '*.sam.btl.com'

I think it's failing because of the db user permissions but I added them all I don't know if that includes creating new databases, is there a way I can check?

What am I missing?

0 likes
2 replies
jlrdw's avatar

I don't know if that includes creating new databases

A multi tenant application is one database.

Please or to participate in this conversation.