CFEM PORTAL SUBFOLDER INSTALLATION This package is made for: https://rpd.asia/portal/ Do not move index.php by itself. The portal folder must contain index.php, api.php, file.php, the assets folder, the CFEM logo, .htaccess, and .user.ini. INSTALLATION 1. Sign in to cPanel and open File Manager. 2. Open public_html. 3. If a portal folder already exists, open it and make sure you have a backup. 4. Upload CFEM-Portal-PUBLIC-HTML-Subfolder.zip into public_html. 5. Select the ZIP and click Extract. 6. Set the extraction location to public_html. 7. Confirm overwrite when cPanel asks. 8. After extraction, public_html/portal must contain: - index.php - api.php - file.php - install.php - cfem-logo.png - assets - .htaccess - .user.ini 9. Keep cfem_private in the cPanel home folder, beside public_html. Do not move it into the portal folder. 10. Open https://rpd.asia/portal/ and press Ctrl+F5. The included PHP files automatically search for cfem_private from both the domain root and a public_html subfolder. All browser links are relative, so API requests, PDF downloads, assets, and the logo work under /portal/. GOOGLE SIGN IN The authorized JavaScript origin remains: https://rpd.asia Do not enter https://rpd.asia/portal/ as an origin because Google origins do not contain paths. Keep the complete Web application Client ID in: cfem_private/config.php If you already imported the database migration, do not import it again.