shaneharter / PHP-Daemon

Build production-ready Daemons using PHP 5.3+. Build fault-tolerant applications without the boilerplate.
Other
768 stars 166 forks source link

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

Open difuse opened 10 years ago

difuse commented 10 years ago

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.

shaneharter commented 10 years ago

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 .