• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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