• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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