Skip to content

Instantly share code, notes, and snippets.

@mpskovvang
Last active April 9, 2016 13:51
Show Gist options
  • Save mpskovvang/67ce9487b33022af1ed35dbd969faf18 to your computer and use it in GitHub Desktop.
Save mpskovvang/67ce9487b33022af1ed35dbd969faf18 to your computer and use it in GitHub Desktop.
PHP Pthreads installation Debian
#Get php5 source:
apt-get source php5
#Edit debian/rules
#add --enable-roxen-zts and/or --enable-maintainer-zts and/or --enable-pthreads to COMMON_CONFIG
#Install build dependencies:
sudo apt-get build-dep php5
#From directory where package source were extracted run:
dpkg-buildpackage -uc -b
#install all:
sudo dpkg -i *.deb
#add this line to php.ini:
#extension=pthreads.so
#pecl install pthreads-2.0.10
echo "extension=pthreads.so" >> /etc/php.ini
#check the extension:
php -m | grep pthreads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment