🔍 PHP API Connection Test
========================================
Test 1: PHP CURL Extension
========================================
✅ CURL is installed
Version: 7.61.1
========================================
Test 2: API Configuration
========================================
API URL: http://5.78.83.177:5000/api
API KEY: your-secre...
========================================
Test 3: Network Connectivity
========================================
Testing: http://5.78.83.177:5000/api/health
❌ CURL Error #7: Failed to connect to 5.78.83.177 port 5000: Connection refused
Common fixes:
- Check if Python API server is running
- Verify the IP address is correct
- Check firewall rules
--- CURL Verbose Log ---
* Trying 5.78.83.177...
* TCP_NODELAY set
* connect to 5.78.83.177 port 5000 failed: Connection refused
* Failed to connect to 5.78.83.177 port 5000: Connection refused
* Closing connection 0
========================================
Test 5: PHP Configuration
========================================
PHP Version: 7.4.33
allow_url_fopen: OFF
max_execution_time: 300s
memory_limit: 1024M
========================================
📋 Summary
========================================
❌ Connection FAILED
Next steps:
1. On Xray server, check if API is running:
ps aux | grep python
netstat -tulpn | grep 5000
2. Test from command line:
curl http://YOUR_SERVER_IP:5000/api/health
3. Check firewall:
ufw status
ufw allow 5000/tcp