Question

I'm about to start working with yii framework using composer and for that I need this php pcntl module working. As I read from the manuals it is not installed in ubuntu by default. Because of that I've 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 installation. But know I'm getting message

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

which probably means that maybe this module was already in my system. So what are my steps now ? Just pay no attention to this warning or I must do something to fix this problem ?

Was it helpful?

Solution

Your php.ini contains two or more of these lines:

extension=pcntl.so

Remove all except one.

php.ini usually lives in /etc/php.ini or /etc/php5/php.ini. Sometimes additional .ini files are included, you can see all of them with:

[~]% 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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top