Self-hosted app·Websites and CMS
YOURLS hosting
in Panama City.
Sizing, compose file, costs and abuse rules.
- PHP
- MariaDB
- Caddy
- Docker
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/06
What YOURLS is
and who runs it.
YOURLS ("Your Own URL Shortener") is a set of PHP scripts with a MySQL or MariaDB database behind them, released under the MIT licence and maintained since 2009 by a small volunteer team around Ozh Richard. It does one job: map a keyword on your domain to a long URL, answer requests for that keyword with a redirect, and log the click. Around that core sit an admin interface, an API (yourls-api.php) used by bookmarklets and scripts, per-link statistics, and a plugin system that most real installations end up relying on.
The current release is 1.10.6, published on 30 August 2026; it is the code of 1.10.5 with a corrected version string. The 1.10 branch raised the minimum to PHP 8.1 and fixed compatibility with MySQL 8 and PHP 8.4. It is run mostly by publishers, universities and marketing teams that want links on their own domain and click data in their own database; you can spot installs by the stock readme.html left at the root of short domains such as oreil.ly, which is the first file we suggest you stop serving.
02/06
Requirements and sizing.
Upstream asks for Apache 2.4 with mod_rewrite (nginx works with a try_files rule), PHP 8.1 or newer, and MySQL 5.5+ or MariaDB 10.0+, with HTTPS recommended. The API needs PHP's cURL extension. Only ports 80 and 443 need to face the internet; the database should never listen on a public interface.
The load is light because a click costs one PHP request, a primary-key lookup, one INSERT into the log table and one counter UPDATE. That log table is the only thing that grows: each row holds the click time, keyword, referrer, user agent, IP address and country code. The figures below are calculated, not measured.
| What | Figure | Basis |
|---|---|---|
| Transfer ceiling on Starter | about 2 billion redirects a month in 10 TB | theoretical: 5 KB per click, fresh TLS handshake included |
| Disk for click logs | about 40 GB per 100 million logged clicks | theoretical: ~400 bytes per log row with indexes |
Two billion clicks a month is an average of roughly 770 per second, which two vCPUs running PHP will not sustain, so the CPU and the log table give out long before the transfer allowance does. Starter is the right plan for a team or brand shortener. Standard (4 vCPU, 4 GB, 160 GB, 15 TB, $12.99/mo) makes sense only if you put other services on the same machine or keep years of logs at high volume. A dedicated server for YOURLS alone is money spent on nothing.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/06
How to deploy it
with us.
Order a Starter VPS with Debian 13 from this deploy link. The account is no-KYC: an email address is enough, and payment is in crypto. While the server provisions, point an A record for your short domain at its IPv4 address; Caddy will need it to resolve before it can obtain a certificate.
Install Docker Engine and the Compose plugin from Docker's own apt repository, which supports Debian 13 "trixie". Docker's instructions list Debian's docker.io and docker-compose packages as conflicts to remove first, so do not mix the two. Then create /opt/yourls with three files. The .env holds the secrets (chmod 600 it; generate each password with openssl rand -base64 24):
SHORT_DOMAIN=sho.rt
DB_PASS=change-me
ADMIN_USER=change-me
ADMIN_PASS=change-mecompose.yaml pins the image to the current release, keeps the database on the internal network, and publishes ports only on the reverse proxy:
name: yourls
services:
db:
image: mariadb:11.8
restart: unless-stopped
environment:
MARIADB_DATABASE: yourls
MARIADB_USER: yourls
MARIADB_PASSWORD: ${DB_PASS}
MARIADB_RANDOM_ROOT_PASSWORD: "1"
volumes:
- db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
yourls:
image: yourls:1.10.6-apache
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
YOURLS_SITE: https://${SHORT_DOMAIN}
YOURLS_USER: ${ADMIN_USER}
YOURLS_PASS: ${ADMIN_PASS}
YOURLS_DB_HOST: db
YOURLS_DB_USER: yourls
YOURLS_DB_PASS: ${DB_PASS}
YOURLS_DB_NAME: yourls
YOURLS_PRIVATE: "true"
# YOURLS_NOSTATS: "true" # uncomment to stop logging clicks at all
volumes:
- ./plugins:/var/www/html/user/plugins
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
SHORT_DOMAIN: ${SHORT_DOMAIN}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
volumes:
db:
caddy_data:
caddy_config:And the Caddyfile, which handles TLS and hides the readme:
{$SHORT_DOMAIN} {
@readme path /readme.html
respond @readme 404
# Optional: restrict the admin to your own address
# @admin {
# path /admin/*
# not remote_ip 203.0.113.10
# }
# respond @admin 403
reverse_proxy yourls:8080
}Run docker compose up -d, wait for the database health check to pass, and open https://sho.rt/admin/. YOURLS asks you to click Install and creates its tables; until then the bare domain returns an error, which is documented behaviour rather than a fault. Plugins go into ./plugins/<name>/ and are activated from the admin.
Only Caddy publishes ports, and that is deliberate: ports published by Docker bypass ufw rules, so the safest database port is one that is never published. The image's config reads YOURLS_PRIVATE and YOURLS_NOSTATS from the environment, which is why both appear above.
Back up the database, not the container. A nightly dump is one line, and restic can push it to an S3 bucket on our object storage:
docker compose exec -T db sh -c 'exec mariadb-dump -uyourls -p"$MARIADB_PASSWORD" --single-transaction yourls' \
| gzip > /var/backups/yourls-$(date +%F).sql.gz
restic -r s3:https://<endpoint>/<bucket> backup /var/backups04/06
Cost.
Prices are from our pricing page, in US dollars.
| Item | Per month |
|---|---|
| Cloud VPS Starter: 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, 1 Gbps | $6.99 |
| Daily backups (+20 %) | $1.40 |
| Object storage, 250 GB S3 bucket for off-site dumps | $1.99 |
| Total with both options | $10.38 |
Billed yearly, the VPS works out at $62.99 for twelve months (approximately −25 %). VPS traffic is metered: the 10 TB is the transfer included each month, a ceiling a shortener will not approach. The bucket is billed by size only, with no traffic or request fees. Payment is crypto only (BTC, ETH, XMR, USDT, USDC and others); the minimum $25 top-up covers about three and a half months of Starter, top-ups from $50 earn a 5 % bonus, and the unused paid part is refundable within 14 days.
05/06
Limits and acceptable
use.
A URL shortener is one of the cheapest tools a phisher can borrow: it hides the destination, inherits your domain's reputation, and costs the attacker nothing. We therefore treat shorteners as a higher-risk use case and expect the default YOURLS posture, private, with the admin and API behind a login. If you open a public shortening page, you are running a service for strangers and you answer for where it redirects.
A public or semi-public instance is defensible when it checks every new URL against anti-phishing lists, lets visitors report a bad link in one click, and has someone who acts on those reports. The YOURLS project's own Google Safe Browsing plugin rejects URLs that Google flags as malware or phishing, and its antispam plugin checks DNS blocklists both when a link is created and when it is visited. For reporting, a page at the root of the domain with a form or an address you actually read is enough; Caddy can serve it in front of YOURLS.
On our side, phishing is manifestly unlawful content, which is one of the cases where we act without waiting for a court order. Copyright is handled differently: a DMCA notice has no legal effect on servers in Panama. We forward copyright complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful.
06/06
Where the click data sits,
legally.
Every logged click stores the visitor's IP address, user agent and referrer, so a YOURLS database is a file of personal data from the first click. On our servers it falls under Panama's Law 81 of 26 March 2019 on personal data protection, implemented by Executive Decree 285 of 28 May 2021. If your visitors are in the EU, Panama has no EU adequacy decision, and transferring their data here needs safeguards such as the 2021 standard contractual clauses.
On requests from abroad, the accurate picture is narrower than offshore marketing usually suggests. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Panama. Panama and the United States are, however, bound by a mutual legal assistance treaty in force since 6 September 1995, so a US request arrives through Panamanian authorities rather than not at all, and Article 29 of the Constitution allows private communications to be intercepted only on a judicial order. Law 51 of 2009 requires telecommunications companies and other providers of communication services to keep certain user data for six months; whether that reaches a hosting provider is a question for Panamanian counsel. More on this on our offshore hosting page. The cheapest protection is not collecting: YOURLS_NOSTATS stops click logging entirely, and the third-party yourls-anonymise plugin blanks IPs, user agents and referrers while keeping click counts and dates.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Can I run YOURLS without Docker?
Yes. Debian 13 ships Apache 2.4, PHP 8.4 and MariaDB 11.8, all within upstream's requirements, so the distribution packages plus the release archive make a perfectly good install and save the memory the containers use. The trade is that PHP and YOURLS upgrades become manual work; with compose, an upgrade is a tag change.
Can I keep the database on object storage?
No. Our object storage is S3-compatible buckets reached through an endpoint and access keys, not a disk you can format or put under MariaDB, and running a database on an rclone mount is a reliable way to corrupt it. Keep MariaDB on the VPS's NVMe and use the bucket for dumps and restic snapshots.
How do I upgrade YOURLS?
Dump the database first, which is upstream's own advice for every update. Then change the image tag in compose.yaml, run docker compose pull && docker compose up -d, and open /admin/; if the schema changed, YOURLS offers to upgrade it there.
Can several people use one instance?
The Docker image maps a single YOURLS_USER. For several accounts, mount your own user/config.php with more entries in $yourls_user_passwords. For scripts and browser extensions, use the signature token on the admin's Tools page rather than handing out the password.
What happens to my IP and domain if someone abuses a public instance?
The short domain is what gets flagged, and a warning on the domain covers every keyword under it, so one bad link can taint the rest. The server's IPv4 can also land on blocklists that other services consult. Both are slow to clear, which is the practical reason to keep YOURLS private. For anything not covered here, see our general FAQ or open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Consulted 5 Nov 2026 unless noted.
Panamanian law and authorities
- Panama, Law 81 of 26 March 2019 on personal data protection, Gaceta Oficial 28743-Agacetaoficial.gob.pa
- Panama, Law 51 of 2009, art. 6, Gaceta Oficial 26374gacetaoficial.gob.pa
- Constitution of Panama, art. 29, G.O. 25176s3-legispan.asamblea.gob.pa
EU and other countries
- US Department of Justice, CLOUD Act resourcesjustice.gov · verified 31 Oct 2026
- GDPR art. 46eur-lex.europa.eu
Industry, providers and software
- YOURLS 1.10.6 release notes, 30 August 2026github.com
- YOURLS image config file reading YOURLS_PRIVATE and YOURLS_NOSTATS from the environmentgithub.com
- Docker Engine on Debian (Debian 13 support, conflicting packages, published ports bypassing ufw)docs.docker.com
- Debian 13 "trixie" release announcement (Apache 2.4, PHP 8.4, MariaDB 11.8)debian.org
- YOURLS Google Safe Browsing plugingithub.com
- YOURLS antispam plugin (DNS blocklists at creation and visit time)github.com
- yourls-anonymise plugingithub.com
Other references
- YOURLS documentation, server requirementsyourls.org
- YOURLS documentation, configuration (YOURLS_PRIVATE, YOURLS_NOSTATS)yourls.org
- YOURLS 1.10 "Tati" announcement (PHP 8.1 minimum, MySQL 8 and PHP 8.4 compatibility)yourls.org
- Docker Official Image yourls (tags, environment variables, port 8080, plugin paths)hub.docker.com
- US Department of State, Panama–US Mutual Legal Assistance Treaty (in force 6 September 1995)state.gov
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.