PHP PCNTL in Debian/Ubuntu PHP-installation

PHP Process Control

Process Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination.
Check the complete introduction over Process Control.

pcntl.installation
howto enable the PHP Process Control in a standard PHP installation on Debian/Ubuntu.


$ mkdir /tmp/phpsource
$ cd /tmp/phpsource
$ apt-get source php5
$ cd /tmp/phpsource/php5-*/ext/pcntl
$ phpize
$ ./configure
$ make

# then copy your module to php5 module-lib path (in my case:)
# and create an .ini-file to enable the module for sapi after graceful restart.


$ cp /tmp/phpsource/php5-*/modules/pcntl.so /usr/lib/php5/20090626/
$ echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

Leave a Reply