调用未定义的函数pcntl_fork()ubuntu服务器apache


Call to undefined function pcntl_fork() ubuntu server apache

我的pcnt_fork 有问题

我按照本教程安装

instalation of 
pcntl
$ mkdir /tmp/phpsource
$ cd /tmp/phpsource
$ apt-get source php5
$ cd /tmp/phpsource/php5-*/ext/pcntl
$ phpize
$ ./configure
$ make
# then copy your module to php5 module-lib path (in my case:)
# and create an .ini-file to enable the module for sapi after graceful restart.
$ cp /tmp/phpsource/php5-*/modules/pcntl.so /usr/lib/php5/20090626/
$ echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini
on php.ini you need to 
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-functions
;disable_functions pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, 

但如果我查看apache错误日志,我会发现PHP致命错误:调用未定义的函数pcntl_fork()。!!

使用PHP时无法使用函数"pcntl_fork"作为Apache模块。您只能在CGI模式下或从中使用pcntl_fork命令行。

使用此函数将导致:'致命错误:调用未定义函数:pcntl_fork()'

http://php.net/manual/en/function.pcntl-fork.php