Call to undefined function pcntl_fork() ubuntu server apache


I have a problem with pcnt_fork

I followed this tutorial for installation

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,

but if I look into apache error log I have PHP Fatal error: Call to undefined function pcntl_fork() yet.!!



It is not possible to use the function 'pcntl_fork' when PHP is used as Apache module. You can only use pcntl_fork in CGI mode or from command-line.

Using this function will result in: 'Fatal error: Call to undefined function: pcntl_fork()'


<a href="http://php.net/manual/en/function.pcntl-fork.php" rel="nofollow">http://php.net/manual/en/function.pcntl-fork.php</a>


  • Difference between sapi.dll and mssps.dll
  • Error expression does not produce a value
  • Retrofit 2.0 OnFailure - Raw Response
  • PHP function to increment variable by 1 each time script is executed
  • Why should I use shutdown() before closing a socket? [duplicate]
  • Deadlock when synchronizing two simple python3 scripts using 0mq (ZeroMQ)
  • How do you use gettext on server (Apache) you can’t restart?
  • Word 2007 VBA: ActiveDocument.CustomXMLParts
  • How to preserve alias property while signing app?
  • Wait for angular to finish updating the DOM
  • Node can't scrape certain pages
  • Version in docker-compose is unsupported
  • how to bypass pinentry (passphrase screen) while decrypting a file using gpgme
  • Redirect to trailng slash (htaccess)
  • GWT Widget.addHandler
  • VB.NET 2012 Property Set on Property Get
  • Graceful pod termination
  • what is the purpose of “export as namespace foo”?
  • How to know which Linq statement produced the SQL on hand during runtime?
  • Write output of for loop to multiple files
  • Why are YouTube videos using 'youtube.com/v' not loading
  • Easiest way to get current unix timestamp via XSL
  • Error in installing package: fatal error: stdlib.h: no such file or directory
  • OSX - always hide certain files
  • Azure table store snapshot/backup capability
  • python script hangs on input method when running spark
  • How to get current document uri in XSLT?
  • How to disable all widgets inside Panel or inside Composite?
  • Security issues with PHP's Readfile method
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Stop Bash Script if Hive Fails
  • error importing numpy
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Chrome doesn't support silverlight anymore? How to solve this?
  • Display Images one by one with next and previous functionality
  • Upload files with Ajax and Jquery
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?