Call to undefined function socket_create()

Trying to get DataDog running locally and I’m getting the following error:
Fatal error: Uncaught Error: Call to undefined function socket_create()

Wondering if the php sockets extension is enabled and, if not, how to do so with Local.

Thanks!

@clay Any chance you can help me out here? I’m in a bind and really need to get this working to move forward with a bug we’re experiencing in one of the apps we built.

Thanks!

Hey Justin,

Sockets should be supported. If you create a brand new site it should have socket support.

Not sure what happened. I ended up changing PHP versions and then switching back and it worked as expected. Perhaps something was off with the migration from Pressmatic to Local?

PHP socket support was added in the first version of Local (1.3.0).

For anyone else that lands here: switching PHP versions re-provisions PHP so your plan was better than creating a new site :slight_smile: