Repository navigation
Installation
Installing Teeny takes about two minutes. You only need a web host with PHP.
- PHP 8.1 or newer (almost every shared host has this)
- The
jsonanddomPHP extensions (both are normally on).gdis optional and lets Teeny resize images. - Apache, LiteSpeed, IIS or nginx. No database.
-
Download
teeny-cms-x.y.z.zip(not the update zip) from the latest release. -
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. -
Check hidden files. In cPanel's File Manager, turn on Settings → Show Hidden Files and make sure
.htaccessis there. It protects your content. -
Permissions: the
dataanduploadsfolders must be writable (755, or775on some hosts). -
Open the installer at
https://your-site.com/install.phpand 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)
- 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.
- Set up email in Preferences → Email so reset links and message alerts can reach you. See Email and password recovery.
-
Delete
install.phpfrom 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/.
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.
.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.
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).
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."