muflo Posted October 10, 2011 Share Posted October 10, 2011 Hi there, trying to use PCNTL. I've recompiled PHP with --enable-pcntl in configure as described in PHP manual, but when I call pcntl_fork() I receive back " Fatal error: Call to undefined function pcntl_fork() ". What am I missing??? Thanks in advance Muflo Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/ Share on other sites More sharing options...
titan21 Posted October 10, 2011 Share Posted October 10, 2011 check your phpinfo to see its compiled in okay - u should see a module for PCNTL listed hopefully Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277717 Share on other sites More sharing options...
muflo Posted October 10, 2011 Author Share Posted October 10, 2011 In phpinfo the only mention to PCNTL is in the Configure Command section. No module specific details is present. But configure, make and make install never raised any erroror Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277719 Share on other sites More sharing options...
titan21 Posted October 10, 2011 Share Posted October 10, 2011 What server are u running this on? Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277721 Share on other sites More sharing options...
muflo Posted October 10, 2011 Author Share Posted October 10, 2011 php 5.2.4 apache 2.2.9 linux 2.6.19-gentoo-r5 Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277725 Share on other sites More sharing options...
titan21 Posted October 10, 2011 Share Posted October 10, 2011 I haven't used this module before but php.net does say it needs to work with CLI or CGI vesions of PHP? Not sure where u check this tho - in PHPInfo perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277736 Share on other sites More sharing options...
muflo Posted October 10, 2011 Author Share Posted October 10, 2011 Resolved. I'm running apache module php. I didn't relize that this extention only works on CGI version Thanks for help!! Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277745 Share on other sites More sharing options...
titan21 Posted October 10, 2011 Share Posted October 10, 2011 No worries - can you mark this thread as solved? Quote Link to comment https://forums.phpfreaks.com/topic/248796-pcntl-extension/#findComment-1277758 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.