Install PHP pcntl

I am going to start working with the yii map using the composer, and for this I need this php pcntl module. As I read from the manuals, it is not installed by default on ubuntu. Because of this, I found some instructions something like this

mkdir php
cd php
apt-get source php5
cd php5-(WHATEVER_RELEASE)/ext/pcntl
phpize
./configure
make

Then:
cp modules/pcntl.so /usr/lib/php5/WHEVER_YOUR_SO_FILES_ARE/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

and made the installation. But I know that I get a message

PHP Warning:  Module 'pcntl' already loaded in Unknown on line 0

which probably means that maybe this module was already on my system. So what are my steps now? Just ignore this warning, or should I do something to fix this?

+3
source share
1 answer

Your php.ini contains two or more of the following lines:

extension=pcntl.so

Delete all but one.

php.iniusually lives in /etc/php.ini or /etc/php5/php.ini. Sometimes additional files are added .ini, you can see them all:

[~]% php -i | grep \.ini\$
Loaded Configuration File => /usr/local/etc/php.ini
Additional .ini files parsed => /usr/local/etc/php/extensions.ini
user_ini.filename => .user.ini => .user.ini
+4
source

All Articles