Webhooks: Where and how should I host some PHP code that works with webhooks?

Topic summary

Problema de despliegue de una app privada en PHP que recibe un webhook, genera/exporta pedidos en formato XML y los sube por SFTP. En entorno local con XAMPP y ngrok funciona correctamente, pero al mover el código a un servidor propio el flujo deja de completarse.

Estado actual:

  • La conexión con el servidor SFTP sí se establece.
  • La subida de los archivos .xml no se realiza.
  • Aparece el error de cURL 35 (“Encountered end of file”), normalmente relacionado con fallos de SSL/TLS durante la conexión.

La duda principal es por qué el servidor en producción se comporta distinto a ngrok y qué tipo de hosting/configuración necesita este código PHP para trabajar con webhooks de forma estable. Se plantea como posible causa una diferencia en ajustes del servidor o en los certificados SSL. No hay solución confirmada todavía; la conversación queda abierta a diagnóstico técnico y recomendaciones de despliegue.

Summarized with AI on March 7. AI used: gpt-5.4.

Hello everyone,

We are working on a feature that exports the order in xml format and uploads it to a server through SFTP. We have created a private app in php that works with xampp and ngrok but we don’t know how to deploy it on a server. I uploaded the code to one of our own servers and tried to connect it to the webhook however we only establish connection with the SFTP, we cannot upload the .xml files. We get a curl error 35 Encountered end of file. Do you know why that is? How could our live server be different from ngrok? I imagine it might be about some server settings and a problem with the ssl certificates. It is very interesting because the code seems to work just fine..

Thank you for your help!