1. Create chatai.omiliprimary.edu.pg in cPanel and enable SSL.
2. Prefer subdomain document root = package/public/. Keep PHP config, API, admin, data and logs outside public root.
3. Copy config.sample.php to config.php. Add OpenAI API key; API billing is separate from ChatGPT.
4. Create password hash privately using PHP password_hash('your-password', PASSWORD_DEFAULT), set admin_password_hash; delete temporary script.
5. Replace refresh_token with a long random secret.
6. PHP 8.1+, cURL and mbstring required. data/ and logs/ writable (750/770, not 777).
7. Open /admin/, sign in, click Refresh Omili School Knowledge.
8. Confirm page count, then add widget script from WEBSITE_EMBED.txt to all school pages.
9. Test on mobile and desktop. Check hosting PHP error logs and OpenAI API usage.
If crawler returns zero pages, check DNS, SSL, site access, robots.txt and outbound cURL.
