Sometimes pcntl functions are disabled on some distributions, so you should
Find the cli php.ini
php --ini
Edit this php.ini , usually you will need
sudo gedit /etc/php5/cli/php.ini
or
sudo vim /etc/php5/cli/php.ini
and comment out the line starting with
You do not have to comment on everything; you can simply enable pcntl functions by removing them from this line, but if it is a development window, you can simply enable everything.
Antonio Carlos Ribeiro
source share