• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Enabling PHP pcntl on domain

brainforge

Basic Pleskian
In PHP I want to use pcntl_fork() on a domain.

Centos 6, Plesk 12.5
Using PHP 7.0.4 FPM application served by Nginx.

Looks like its not as easy as slippling "extension=pcntl.so" into the additional configuration directives field og PHP settings for the domain.

I cannot find pcntl.so on the server.

Is this possible?
Any suggestions?
 
Thanks, I wanted to avoid that.

On further investigation pcntl_fork() function exists with PHP 7.0.4 FastCGI Application with Apache setting.

The following looks like it will achieve what I want and maybe has future flexibility.

Main site PHP 7.0.4 FPM application served by Nginx
Does a curl call to - http://workers.mydomain.com

workers.mydomain.com served by PHP 7.0.4 FastCGI Application with Apache
Does whatever it wants using pcntl_fork() and returns result.
Workers could even be on another machine - potential for future load sharing...!
 
Back
Top