How to enable PCNTL on Ubuntu 16.04 server

I am wondering how to enable the pcntl extension in PHP7 running on a Ubuntu 16.04 server.
I saw this http://www.crimulus.com/2010/07/30/howto-enable-pcntl-in-ubuntu-php-installations/ , but do we really need to recompile PHP7?

This surprises me, as other extensions are usually easy to add with apt-get.

thank

+4
source share
1 answer

You do not need apt-get install anything else.

pcntl , php , sudo apt update, sudo apt-get upgrade, . , , .

php -i | grep pcntl
//pcntl suppport=>enable

.

sudo apt install php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-imap php7.0-json php7.0-mbstring php7.0-opcache php7.0-readline php7.0-xml
+1

Source: https://habr.com/ru/post/1659756/


All Articles