Install PCNTL on Ubuntu 16.04 PHP7

Asked

Viewed 290 times

2

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

I managed to do the installation without problem, but when I have to install the PCNTL can’t.

In PHP 5 the procedure is this below:

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 don’t know how to do this in PHP 7.

1 answer

2

If you install PHP via apt-get, it already comes with Ubuntu-enabled PCNTL. You don’t 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.