Install PCNTL on Ubuntu 16.04 PHP7

2

I have a GPS application that your manual is written for PHP 5, but I would like to use PHP 7.

I was able to install with no problem, but when I have to install PCNTL I can not.

In PHP 5 the procedure is as follows:

apt-get install dpkg-dev
apt-get install php5-dev
mkdir /tmp/phpsource
cd /tmp/phpsource
apt-get source php5
cd /tmp/phpsource/php5-*/ext/pcntl
phpize
./configure
make
cp /tmp/phpsource/php5-*/ext/pcntl/modules/pcntl.so
/usr/lib/php5/20090626*/

But I do not know how to do this procedure in PHP 7.

    
asked by anonymous 09.06.2017 / 03:38

1 answer

1

If you install PHP via apt-get, it already comes with PCNTL enabled in Ubuntu. You do not need to install anything.

begnini@coffee-machine:~# php -i | grep pcntl
pcntl
pcntl support => enabled

begnini@coffee-machine:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial
    
09.06.2017 / 04:34