Join GitHub today
How to enable pthreads in PHP 5.6 at ubuntu #584
I get the point from
Please see my comment here: #488 (comment)
There is no way to enable pthreads like other modules. You need to compile PHP thread safe. In the comment I linked I explained a bit how you can do this.
Installing PHP7 ZTS from PPA
Maybe as an alternative: There is a PPA from Ondřej Surý for PHP7 which is already compiled thread safe. (See here: https://launchpad.net/~ondrej/+archive/ubuntu/php-zts)
To make use of this, do the following:
Congratz! PHP7 with thread safety is installed.
It should work now. Not tested, just guessed based on the installations I did before this way.
Edit: I think I'll write a little script next time for automated install of PHP7 ZTS with pthreads.
@morphesus did an awesome job with the guide above, but just one small thing:
Now it works.
root@box:/etc/php/7.0-zts/cli/conf.d# php -m | grep pthreads
I love it too , but unfortunately a lot of PHP library still using PHP5 and it needs adjustments to be working in 7
so I'm hanging with 5 for now , I tried to make it work with pthreads but I couldn't and every installation guide is focusing in php7
"For pthreads 3.x.x you'll need......and you need php7-dev installed - compiled with..." #488 (comment)
I cannot use PHP7 so I’m really happy with pthreads v2 (; , how can I make it work with PHP5 ?
Note: I know my problem not an issue and it's not related pthreads 3 ,I'm sorry for that please help.
@morphesus I try to follow the commands, as soon as I reach
Hi @morphesus I try to follow the commands, as soon as I reach
I am using linuxmint Based on: Debian, Ubuntu 16.04 (LTS)
Any help would be appreciated