This happens if the PHP backend returns an error instead of a JSON response.
I recommend checking the backend HTTP request using browser developer tools. The response will contain an error message which can point you to the right direction. Most likely this is something like file permissions, incorrect database credentials...
Let me know if it didn't help.