kisaanseva diagnose

Run this after deploying to see what's working and what's not.

16/19 checks passed — some checks failed, see below.

Open main page Open test page Clear proxy cache Re-run diagnose

1. PHP environment

#CheckStatusDetail
1 PHP version ✓ OK
Detected: 8.2.36
PHP 7.4+ required. PHP 8.x recommended.
2 cURL extension ✓ OK
cURL 8.23.0 loaded
Enable cURL in cPanel → Select PHP Version → tick "curl".
3 cURL SSL support ✓ OK
OpenSSL OpenSSL/1.1.1w
Without SSL, cURL cannot talk to https://upbhulekh.gov.in
4 allow_url_fopen ✓ OK
enabled
Optional but recommended. Enable in php.ini.
5 cache/ directory writable ✓ OK
/home/u842080428/domains/transport.uptehsil.com/public_html/cache
Run: chmod 775 cache/ && chown www-data:www-data cache/

2. Filesystem

#CheckStatusDetail
6 logs/ directory writable ✓ OK
/home/u842080428/domains/transport.uptehsil.com/public_html/logs
Run: chmod 775 logs/
7 Outbound HTTPS to upbhulekh.gov.in ✗ FAIL
cURL error 7: Failed to connect to upbhulekh.gov.in:443 after 112 ms: Could not connect to server
Likely causes: (1) outbound HTTPS blocked by hosting firewall, (2) SSL cert verification fails — try CURLOPT_SSL_VERIFYPEER=false for testing.
8 /PublicBhuApi/api/edata endpoint reachable ✗ FAIL
Skipped — outbound HTTPS failed above
Fix connectivity first.
9 Self-proxy POST to /proxy.php (simulates SW call) ✓ OK
HTTP 502, 195 bytes. Body: {"error":"upstream_failed","errno":7,"detail":"Failed to connect to upbhulekh.gov.in:443 after 38 ms: Could not connect to server","target":"https:\/\/upbhulekh.gov.in\/PublicBhuApi\/api\/edata"}
10 proxy.php?debug=1 reachable (PHP execution) ✓ OK
HTTP 200, 2247 bytes
11 CORS spoofing (Origin/Referer override) ✓ OK
HTTP 502, body: {"error":"upstream_failed","errno":7,"detail":"Failed to connect to upbhulekh.gov.in:443 after 46 ms: Could not connect to server","target":"https:\/\/upbhulekh.gov.in\/PublicBhuApi\/api\/edata"}
Spoofing works. No CORS rejection. (HTTP 401/500 expected — main.js sends proper auth body.)

3. Connectivity to upbhulekh.gov.in

#CheckStatusDetail
12 HTTPS context (required for SW) ✓ OK
HTTPS detected
Service Workers require HTTPS (or localhost). Enable Let's Encrypt in cPanel → SSL/TLS Status.
13 sw.js file exists ✓ OK
/home/u842080428/domains/transport.uptehsil.com/public_html/sw.js (9592 bytes)
Re-upload sw.js to the project root.
14 proxy.php file exists ✓ OK
/home/u842080428/domains/transport.uptehsil.com/public_html/proxy.php (19134 bytes)
Re-upload proxy.php to the project root.
15 main.*.js file exists ✓ OK
main.beda787c2ba07f09.js (7445500 bytes)
Re-download main.<hash>.js from upbhulekh.gov.in using update_assets.sh.
16 config.php starts with <?php tag (no source leak) ✓ OK
Yes — direct access returns 403
Re-upload config.php. The first 5 characters MUST be "<?php" (no leading # comments outside the PHP tag).
17 index.html has SW registration snippet ✗ FAIL
MISSING — you uploaded the ORIGINAL upbhulekh index.html (no SW code)
Re-upload the MODIFIED index.html from kisaanseva_angular_proxy/ folder. The original upbhulekh.gov.in index.html has no SW registration code.
18 index.html references main.<hash>.js ✓ OK
Found main.beda787c2ba07f09.js in index.html
Edit index.html <script src="..."> tags.
19 .htaccess file exists ✓ OK
/home/u842080428/domains/transport.uptehsil.com/public_html/.htaccess (5460 bytes)
Upload .htaccess. If overrides are blocked, contact your hosting provider.

Next steps

  1. Outbound HTTPS to upbhulekh.gov.in: Likely causes: (1) outbound HTTPS blocked by hosting firewall, (2) SSL cert verification fails — try CURLOPT_SSL_VERIFYPEER=false for testing.
  2. /PublicBhuApi/api/edata endpoint reachable: Fix connectivity first.
  3. index.html has SW registration snippet: Re-upload the MODIFIED index.html from kisaanseva_angular_proxy/ folder. The original upbhulekh.gov.in index.html has no SW registration code.

Tips