First look at the directory where the Phpize command is located (ps: my directory/usr/bin/phpize)
If not found, perform the installation
Yum Install Php53_devel (PS: Please note your version)
After the installation is complete. The Phpize command is generated
Go to php.net download the appropriate version of the PHP source file
Let's take php-5.3.17 as an example, after decompression, into the corresponding module
CD Ext/pcntl
#先执行phpize
/usr/bin/phpize
./configure--with-php-config=/usr/bin/php-config (PS: Please specify the directory of the Php-config correctly) this is the point.
#编译, installation
Make && make install
A pcntl.so file is generated when the compilation is complete. In the Model directory of PHP
Edit/etc/php.ini, join
Extension=pcntl.so
Restart Apache
Service httpd restart (different installation directory, command slightly different)
- 5
Test whether the installation was successful
<?php
Echo Pcntl_fork ();
?>
Output: 23165 (not necessarily the number, but it must be a number)
For Liunx Novice, all the way, are tears
From: http://jingyan.baidu.com/article/22a299b5cf30a79e19376a1f.html
PCNTL Extension of PHP installed under Linux system