Install pcntl (pcntl_fork) on Ubuntu Hardy

No apt-getting on Hardy :(

cd ~/
mkdir php
cd php
apt-get source php5
cd php5-*/ext/pcntl
phpize
./configure
make
no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk '{gsub(/^ +| +$/,"")}1'`
cp modules/pcntl.so /usr/lib/php5/$no/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

1 comment so far ↓

#1 wrong on 02.02.12 at 22:29

You need too:
1) to be root
2) the package php5-dev
3) change /etc/php5/*/php.ini and change the “disable_functions”

Leave a Comment