PHP-Daemon icon indicating copy to clipboard operation
PHP-Daemon copied to clipboard

Error "The PCNTL Extension is not installed" but it is.

Open difuse opened this issue 12 years ago • 1 comments

Hello !

The extension PNCTL is installed on my server (apache2, debian) and work on my scripts but when i try to start run.php of examples (PrimeNumbers), i get this error :

Date                  PID   Label         Message
[2013-11-10 14:57:02]  4524               Checking Dependencies... Failed:
[2013-11-10 14:57:02]  4524                 The PCNTL Extension is not installed
[2013-11-10 14:57:02]  4524               Examples\PrimeNumbers\Daemon is Shutting Down...

But effectively, in php -i and phpinfo() the PCNTL extension is enabled.

A little help or indication about this?

Thanks.

difuse avatar Nov 10 '13 23:11 difuse

My guess is that somehow the php ini is not the same as is being run with the daemon fir some reason. You can look at the pcntl check in the check_envirnment method of Core_Daemon and even try running it on its own. Let me know if I cam be of more help but my guess is that this is a configuration issue. Definitely file a bug report with more info if you think not. For example add in a php info call to that method at the top and paste the results here.

On Sunday, November 10, 2013, difuse wrote:

Hello !

The extension PNCTL is installed on my server (apache2, debian) and work on my scripts but when i try to start run.php of examples (PrimeNumbers), i get this error :

Date PID Label Message [2013-11-10 14:57:02] 4524 Checking Dependencies... Failed: [2013-11-10 14:57:02] 4524 The PCNTL Extension is not installed [2013-11-10 14:57:02] 4524 Examples\PrimeNumbers\Daemon is Shutting Down...

But effectively, in php -i and phpinfo() the PCNTL extension is enabled.

A little help or indication about this?

Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/shaneharter/PHP-Daemon/issues/33 .

shaneharter avatar Nov 11 '13 05:11 shaneharter