Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCNTL required? #5

Open
rfay opened this issue Oct 27, 2023 · 6 comments
Open

PCNTL required? #5

rfay opened this issue Oct 27, 2023 · 6 comments

Comments

@rfay
Copy link
Contributor

rfay commented Oct 27, 2023

I happened to see this in the site I added rabbitmq to:

Extension [PCNTL](http://php.net/pcntl) not present in PHP. Option rabbitmq_timeout is not available in the RabbitMQ consumer.

image

Does the config.rabbitmq.yaml (when converted to be ddev config) need to have webimage_extra_packages: [php8.x-pcntl] or something?

@ochorocho
Copy link
Collaborator

I was not aware of this requirement. Sounds like it makes sense to add this to webimage_extra_packages.

@ochorocho
Copy link
Collaborator

According to the comment here, #1 (comment)

How to add a package to webimage_extra_packages? :-)

@rfay
Copy link
Contributor Author

rfay commented Oct 27, 2023

You would add a config.rabbitmq.yaml with

webimage_extra_packages: [php8.<x>-pcntl]`

Using that technique I don't know how to get the right PHP version without installing lots of them. As a custom Dockerfile (.ddev/web-build/Dockerfile.rabbitmq) it can use an environment variable $DDEV_PHP_VERSION, https://ddev.readthedocs.io/en/latest/users/extend/customizing-images/#adding-extra-dockerfiles-for-webimage-and-dbimage

@ochorocho
Copy link
Collaborator

ochorocho commented Oct 27, 2023

Tested with these php version:

$ php8.1  -i | grep pcntl
pcntl
pcntl support => enabled

$ php8.2 -i | grep pcntl
pcntl
pcntl support => enabled

$ php8.3 -i | grep pcntl
pcntl
pcntl support => enabled

Seems like php8.x ships with pcntl enabled by default.

extension_loaded('pcntl') returns empty, and phpinfo() does not show pcntl enabled.
From what i read it is disabled for php-fpm.

Happy to enable it, if you can tell me just how? :-)

@rfay
Copy link
Contributor Author

rfay commented Oct 27, 2023

You're the expert here :) It's quite possible that the Drupal module either has a command-line approach that uses pcntl or it's just silly. I don't even know what pcntl is. I also don't know what rabbitmq is :)

@ochorocho
Copy link
Collaborator

I'll leave this open until i know more about rabbitmq and it's php requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants