Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thread Safety enabled server php

I'm trying to implement threads in php and with xampp on windows I can do this, however i have a linux server with cpanel and in configurations the Thread Safety is disabled, how can i put enabled on my server linux? I call phpinfo() and it shows that "Thread Safety" is disabled

like image 976
user3250732 Avatar asked Dec 19 '22 15:12

user3250732


1 Answers

You have two options:

  • Find a thread safe package in your distributions package repository
  • Compile PHP from source with --enable-maintainer-zts

I'm quite sure cPanel has a configuration screen that will allow you to reconfigure and rebuild, a quick google turns up this, which appears relevant:

http://forums.cpanel.net/f442/how-install-php-pthreads-zts-387252.html

like image 113
Joe Watkins Avatar answered Dec 31 '22 20:12

Joe Watkins