To run thread safe application in PHP, you will need to install PThread manually, because it's not included in the common distribution.
Below reference contains the required steps for PThread
https://gist.github.com/tegansnyder/ad32f2068e7e30d2692c06df32314ed4