# Way of Nirvana: install on horoscope.wayofnirvana.com

This zip holds two folders that go in your cPanel **home folder** (`/home/ivermecting/`):

| Folder | What it is |
|---|---|
| `horoscope.wayofnirvana.com/` | The full horoscope website. `config.php` is already set to https://horoscope.wayofnirvana.com. |
| `wayofnirvana.com/` | The main domain: a permanent redirect to the horoscope site, plus `ads.txt` |

## Steps

1. **Create the subdomain** in cPanel under **Domains → Create a New Domain**:
   - Enter `horoscope.wayofnirvana.com`.
   - Untick **Share document root**.
   - Set the document root to `horoscope.wayofnirvana.com`.
2. **Clear the old folder.** In File Manager, open `/home/ivermecting/wayofnirvana.com/`. Turn on **Settings → Show Hidden Files**, then delete the old horoscope files there.
3. **Upload and extract.** Go to `/home/ivermecting/` (the home folder, not public_html). Upload this zip, choose **Extract**, and allow it to overwrite.
4. **ads.txt.** Already done: `wayofnirvana.com/ads.txt` contains your publisher ID pub-6219136684573984.
5. **AdSense ID on the site.** Already done: `ADSENSE_CLIENT` in config.php is set to ca-pub-6219136684573984. In AdSense, go to **Sites → Add site** and add `wayofnirvana.com` for review.
6. **SSL:** run **SSL/TLS Status → Run AutoSSL**. Both `wayofnirvana.com` and `horoscope.wayofnirvana.com` need a certificate.
7. **Cron job** (once a day):
   ```
   /usr/local/bin/php /home/ivermecting/horoscope.wayofnirvana.com/generate.php >/dev/null 2>&1
   ```
   Delete the old cron job that points to the previous folder.
8. **Test:**
   - https://horoscope.wayofnirvana.com opens the site.
   - https://wayofnirvana.com jumps to it.
   - https://wayofnirvana.com/ads.txt shows your ads line.
   - https://horoscope.wayofnirvana.com/sitemap.xml lists horoscope.wayofnirvana.com addresses.

## DNS

- **If your Porkbun nameservers point to your hosting:** nothing to do.
- **Otherwise:** in Porkbun DNS, add an **A** record with host `horoscope` pointing to your hosting IP. Add the same record for the root domain, with host left blank.

## Optional: force HTTPS

Once SSL works, open `horoscope.wayofnirvana.com/.htaccess` and remove the `#` from the two lines under "Force HTTPS".
