41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
---
|
|||
|
|
title: Service hostnames
|
||
|
|
description: Quick reference for connecting to MySQL, PostgreSQL, Memcached, Redis, and SMTP from inside your container.
|
||
|
|
sidebar:
|
||
|
|
order: 1
|
||
|
|
---
|
||
|
|
|
||
|
|
import Hostnames from '~/content/partials/service-hostnames.mdx';
|
||
|
|
import Support from '~/content/partials/support-link.mdx';
|
||
|
|
|
||
|
|
Use these hostnames from inside your WHP container — they resolve to the internal services your site can talk to. They don't work from your laptop; see the note below.
|
||
|
|
|
||
|
|
<Hostnames />
|
||
|
|
|
||
|
|
## Where do I get credentials?
|
||
|
|
|
||
|
|
Each service's credentials live in a different section of the WHP panel:
|
||
|
|
|
||
|
|
- **MySQL** → **Databases → MySQL → Users**
|
||
|
|
- **PostgreSQL** → **Databases → PostgreSQL** (if enabled on your plan)
|
||
|
|
- **Redis** → **Caching → Redis**
|
||
|
|
- **Memcached** — no auth required; the service is isolated per container.
|
||
|
|
- **SMTP** — use any mailbox you've created and its password.
|
||
|
|
|
||
|
|
## Connecting from your laptop
|
||
|
|
|
||
|
|
Direct external connections to these internal services are not exposed for security reasons. Use the panel's tools instead:
|
||
|
|
|
||
|
|
- **MySQL** — **phpMyAdmin** in the panel for ad-hoc queries.
|
||
|
|
- **PostgreSQL** — **Adminer** in the panel.
|
||
|
|
- **Redis / Memcached** — use the **Caching** section's built-in CLI panel.
|
||
|
|
- **SSH tunneling** — if your plan includes SSH (see the plan page), you can tunnel from your laptop through your site container to the internal service.
|
||
|
|
|
||
|
|
## Related
|
||
|
|
|
||
|
|
- [Create a site](/whp/how-to/create-a-site/)
|
||
|
|
|
||
|
|
## Still stuck?
|
||
|
|
|
||
|
|
<Support />
|