Justin Walker

WEB DEVELOPER, CAT ENTHUSIAST, FAN OF VINTAGE COCKTAILS, TRAVEL, AND BREAKFAST BURRITOS

Parse, PHP, and cURL on Windows Azure

I was recently trying to use Parse’s PHP SDK and was running into some issues when I deployed the project to Azure. Whenever I would attempt to run any of the Parse scripts I would get a 500 Internal Server Error.

It turns out that Parse is using cURL which does not ship with it’s own CA certificate bundle. To fix the problem I needed to specify a CA cert bundle for PHP’s cURL. All the steps below can be accomplished in the Kudu interface which you can access at [your-azure-site-name].scm.azurewebsites.net.

1. Create Custom php.ini

2. Create applicationhost.xdt

- Make sure to change the php version if needed.

**3. Create ca-bundle.crt**

- While still at `D:\home\site\` create a new file.

echo temp > ca-bundle.crt ```

4. Restart the site


References


Load Comments