Skip to content

Installation

Webzing edited this page Nov 27, 2026 · 7 revisions

Installing Teeny takes about two minutes. You only need a web host with PHP.

What you need

  • PHP 8.1 or newer (almost every shared host has this)
  • The json and dom PHP extensions (both are normally on). gd is optional and lets Teeny resize images.
  • Apache, LiteSpeed, IIS or nginx. No database.

Steps

  1. Download teeny-cms-x.y.z.zip (not the update zip) from the latest release.
  2. Upload it with your host's File Manager (or FTP) into the folder for your site, for example public_html, and Extract it there. The files are at the top of the zip, so they land in the right place.
  3. Check hidden files. In cPanel's File Manager, turn on Settings → Show Hidden Files and make sure .htaccess is there. It protects your content.
  4. Permissions: the data and uploads folders must be writable (755, or 775 on some hosts).
  5. Open the installer at https://your-site.com/install.php and fill it in:
    • your site name
    • your owner account (username and a password of at least 10 characters; add your email so you can reset it later)
    • a starting layout and a look (both can be changed later)
  6. Save your password and rescue code. The welcome page shows a rescue code that lets you set a new password from the sign-in page if you ever forget it, even without email. Copy it or download it as a text file.
  7. Set up email in Preferences → Email so reset links and message alerts can reach you. See Email and password recovery.
  8. Delete install.php from your server. It locks itself after installing, so this is just extra safety. Delete the zip too.

Your Studio (the editing area) is at https://your-site.com/admin/.

Installing in a subfolder

Teeny works in a subfolder too, for example https://your-site.com/site/. Upload it into that folder and open https://your-site.com/site/install.php.

nginx servers

.htaccess files are ignored by nginx, so ask your host to add the rules from the guide to your server block, above the PHP location.

Behind Cloudflare

Turn on SSL/TLS → Edge Certificates → Always Use HTTPS so visitors always reach the secure address. If the Studio sign-in cookie isn't marked "secure" behind your proxy, set TEENY_FORCE_HTTPS in config.php (see config.sample.php).

Try it without a web host

In your browser, nothing to install. Click Open in GitHub Codespaces and sign in to GitHub (a free account is fine). After about a minute Teeny opens in a new browser tab with the installer. If VS Code asks whether you trust the authors of the files, click Trust Folder & Continue. If no tab opens (your browser may block it), open the Ports tab at the bottom of VS Code and click the globe icon next to Teeny CMS. The test site lives in your own Codespace; stop or delete it when you're done. Step by step: Try it in your browser.

With PHP 8.1 or newer, open a terminal in the Teeny folder and run:

php -S localhost:8000 router.php

With Docker (no PHP needed), in the Teeny folder run:

docker run --rm -p 8000:8000 -v "${PWD}:/app" -w /app php:8.3-cli php -S 0.0.0.0:8000 router.php

Then visit http://localhost:8000. router.php (included from version 1.4.4) makes PHP's built-in server follow the same rules as a real host. It's for trying Teeny only, not for a live site.


"Plain-file publishing, simplified."

Clone this wiki locally