how to enable pcntl on php5

Issues related to software problems
Post Reply
Posts: 1
Joined: 2007/05/21 18:25:40
Location: Germany

how to enable pcntl on php5

Post by doreen04 » 2007/05/21 18:34:52


I'm not sure if pcntl is enabled on my installation on PHP5 on Apache2, but phpinfo() doesn't show any traces of pcntl at all. I installed php using yum using the command "yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel"

Do I have to uninstall and reinstall PHP from source in order to get pcntl enabled? I'm a totally new to linux so I'm a lil' shaky... Would appreciate any help given! Thanks a lot :)

Posts: 1
Joined: 2009/08/26 07:51:37

Re: how to enable pcntl on php5

Post by j0k3r0 » 2009/08/26 08:07:32

i'd got & solved the same problem
it took me about 1 day

download your php complete source version(should be precise version number) first
link is :
check by phpinfo() to know your php version
extract your tar
you will got folder name like php5-x.x.x
run following lines in terminal

cd php5-x.x.x/ext/pcntl
cp modules/ /usr/lib/php/modules/
echo "" > /etc/php.d/pcntl.ini
restart apache

note: if your /usr/lib/php/modules/ or /etc/php.d/ is not same with me, you could try 'locate php/modules' or 'locate php.d'


Post Reply

Return to “CentOS 4 - Software Support”