LSYC CRANE & MAST 2026 — DEPLOYMENT AND VERIFICATION

This is a real server-backed app, not a local-storage demo. Included are 184 boat records and 199 sling photos imported from the October 8 backup. Data is a snapshot and may not include changes made after that backup. DO NOT replace or merge with the current live database without comparing newer changes.

1. BEFORE INSTALLATION: Make a separate full backup of the existing live LSYC site. Do not overwrite it.
2. In cPanel create NEW folder public_html/LSYC-CRANE-MAST-2026 . Extract this ZIP so index.html, api.php, config.php, data/ and photos/ sit DIRECTLY in that folder (not a nested second folder).
3. Confirm your hosting supports PHP 8.1+, PDO_SQLITE, fileinfo, ZipArchive, and HTTPS. Apache must honour .htaccess in data/ and photos/; test that direct HTTP requests to data/lsyc.sqlite and photos/filename.jpg are forbidden. The server must be able to write to data/ and photos/.
4. Open https://lsycapp.ca/LSYC-CRANE-MAST-2026/ . The first-run page requests the private installation key (see INSTALL-KEY.txt) and an administrator password of at least 14 characters.
5. After first setup, DELETE INSTALL-KEY.txt FROM THE SERVER and store the key separately. Never publish or share it.
6. Sign in as administrator. Create accounts for Big Crane, Small Crane, and Yard Lead, each with a unique password (12+ characters). Do not reuse demo credentials.
7. Test: log in as Big Crane, replace a test boat sling photo and verify another phone sees it. Log in as Yard Lead, set a mast rack/slot/side and verify another phone sees it. Test forbidden edits, collision detection, photos 1–3, and the ZIP backup. Use a non-production test boat for these checks; keep a backup first.
8. Confirm all 184 records and 199 photos. Verify the newest real-world changes against the October 8 snapshot before crews use it.
9. Only after successful multi-device testing, share this new URL with crews. Do not redirect the old site yet.

DATA SAFETY: Automatic daily SQLite snapshots are stored in data/backups (up to 21 days), plus older replaced photos remain on disk for recovery. Download a full ZIP backup at the start and end of each operating day. For complete disaster recovery, keep an off-server backup of database AND photo files. The app cannot guarantee uptime, connectivity, hosting backups or flawless behaviour without live testing.

SECURITY: All photos and database are denied by .htaccess and served through authenticated PHP. If your host uses Nginx without compatible deny rules, configure equivalent server-side restrictions before launch. No public URL to SQLite or photos should ever work.
