Subdomain (Shared Hosting)
If your main website runs on example.com and you want Jambo to run on api.example.com, configure a subdomain pointing to the Jambo installation.
Step 1 — Create the subdomain
In your hosting control panel (cPanel / DirectAdmin / Plesk):
- Go to Subdomains or Domain Management
- Create a new subdomain:
api.example.com - Set the document root to Jambo’s
public/folder
Step 2 — Point the document root to public/
Jambo’s entry point is public/index.php. Set the subdomain document root to:
/home/username/jambo/publicIf your host does not allow custom document roots, place the contents of public/ in public_html/ and update public_html/index.php to reference the project root:
// Update this line to point to your project rootrequire_once dirname(__DIR__) . '/jambo/vendor/autoload_runtime.php';Step 3 — Configure APP_HOSTNAME
In your .env:
APP_HOSTNAME=api.example.comDEFAULT_URI=https://api.example.comStep 4 — Enable SSL
Enable a free Let’s Encrypt SSL certificate for your subdomain from the SSL/TLS section of your control panel.
Once active, your API is available at https://api.example.com/api/{project-uuid}/.
Step 5 — Run migrations via SSH
cd ~/jambophp bin/console doctrine:migrations:migratephp bin/console app:setup # first time onlyphp bin/console cache:warmupTroubleshooting
403 or blank page — check that the document root points to public/ and that index.php can find autoload_runtime.php.
Mixed content warnings — ensure DEFAULT_URI uses https:// and that all uploads are served over HTTPS.