Process Control support in PHP is not enabled by default. You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support.


Currently, this module will not function on non-Unix platforms (Windows).

add a note add a note

User Contributed Notes 1 note

diogo-nechtan at tagon8inc dot com
3 years ago
Manual installation on Mountain Lion (OS X 10.8)

first: Download the php source
(e.g. $ wget

nechtan$ sudo su
sh-3.2# tar -zxvf php-5.3.15.tar.gz
sh-3.2# cd php-5.3.15/ext/pcntl/
sh-3.2# phpize && ./configure && make install
sh-3.2# echo "" >> /etc/php.ini
sh-3.2# apachectl restart

checking if everything is ok.

sh-3.2# php -m | grep pcntl

testing pcntl with Facebook's PHP shell:
To Top