VALYWEAR OS — FIXED cPANEL DEPLOYMENT STRUCTURE ============================================================ IMPORTANT: Do NOT extract the app files into public_html. The previous "Index of /" happened because LiteSpeed was serving the Next.js source folder as a static folder instead of routing requests to Node.js/Passenger. This ZIP now contains a single `valywear-app/` folder. Extract the ZIP into your cPanel HOME directory (one level ABOVE public_html), so the paths become: /home/YOUR_CPANEL_USERNAME/valywear-app/server.js /home/YOUR_CPANEL_USERNAME/valywear-app/package.json /home/YOUR_CPANEL_USERNAME/valywear-app/.next/ /home/YOUR_CPANEL_USERNAME/valywear-app/src/ STEPS ----- 1) cPanel -> File Manager -> click Home in the left tree. 2) Upload `valywear-os-cpanel-fixed.zip` into Home, NOT inside public_html. 3) Select the ZIP -> Extract. It creates the `valywear-app` folder automatically. 4) cPanel -> Software -> Setup Node.js App -> Create Application: - Node.js: 20.x or 22.x - Application Mode: Production - Application Root: `valywear-app` (relative to your Home folder) - Application URL: select `quilvixa.xyz` - Application URI / Base URI: `/` (root of your domain) - Startup File: `server.js` 5) Click Create, then open the application settings and click `Run NPM Install`. Wait until installation finishes, then click `Start` / `Restart`. `node_modules` is purposely excluded from the ZIP; cPanel builds it for your own Node.js version. 6) If you have previously extracted `src`, `public`, `package.json`, `server.js`, and the ZIP directly into public_html, move those old project files out of public_html (into trash or another backup folder). Do not delete any unrelated site files. The public_html root must be connected to your Node App by the cPanel/Passenger app mapping, not used as the Node app's source directory. 7) Open `https://quilvixa.xyz/install`. Enter the PostgreSQL host, port, database, username and password. The installer creates `.env`, injects all 41 PostgreSQL tables, seeds the clothing store, creates your immutable Hardcore Core Admin, and locks the installer. DNS CHECK --------- `quilvixa.xyz` currently resolves to `147.135.105.7`, matching the cPanel server hostname observed during troubleshooting. If DNS changes later, verify the hosting Shared IP in cPanel -> General Information. IF THE DOMAIN STILL SHOWS "Index of /" --------------------------------------- The domain is still mapped to static LiteSpeed public_html, or the Node.js App is stopped/not attached at the domain root. - Confirm Setup Node.js App shows `Started` and startup file is `server.js`. - Confirm the app URL is `quilvixa.xyz` and app URI is `/`. - Use the Application URL shown by cPanel (or restart the Node app) to verify Passenger routing. - Check cPanel -> Metrics -> Errors / Node.js App logs if the app shows 503. IF `.next` IS NOT VISIBLE IN FILE MANAGER ----------------------------------------- `.next` is a hidden dot-folder. cPanel File Manager -> Settings (top-right) -> tick `Show Hidden Files (dotfiles)`. The production build is included in this ZIP. ============================================================