Last active
April 9, 2016 13:51
-
-
Save mpskovvang/67ce9487b33022af1ed35dbd969faf18 to your computer and use it in GitHub Desktop.
PHP Pthreads installation Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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