OwnShip Guide

Local Preview

OwnShip is a single PHP file, so any local PHP server can preview your site before you upload it. If you already run a local dev environment, point it at your content folder and you're done. If you don't, OwnShip bundles two zero-setup scripts for the common case.

The bundled scripts

Small scripts that start PHP's built-in server and open your browser — nothing to install beyond PHP itself.

OwnShipPreview.bat — Windows

Double-click or run from any directory. Opens http://localhost:8080 automatically.

OwnShipPreview.sh — bash / WSL

bash OwnShipPreview.sh

Run from your content directory. Opens http://localhost:8080 automatically.

Both need PHP installed and on your PATH. To check:

php --version

If you develop with OwnShip you almost certainly already have it.

Using a server you already run

Any of these previews an OwnShip site just as well — there is nothing OwnShip-specific to configure. Point the server at the folder that holds index.php and your content:

Clean URLs, locally

The one thing that differs between local servers is whether they read .htaccess, which is what powers clean URLs:

Everything except clean URLs previews identically on any of them — it's the same index.php rendering the same content.

Download

Both scripts are available from the Downloads section of the OwnShip website.