Apache + PHP + parallel processing

Hi all

This is taking me a lot of days but no luck…
Apache 2.4.25
PHP 7.3.9

I need to some tasks to be run in parallel (in concrete, some ICMP pings…).

After a lot of research i’ve managed to create a php that runs the tasks in parallel. But it works in CLI, not as apache module.

After a lot a searchs and browsing it seems that in this enviroment

  • pthreads is not available?
  • pcntl_fork is not available?
  • is there any way to get this work???

Thanks all!

As the documents says:

Warning The pthreads extension cannot be used in a web server environment. Threading in PHP is therefore restricted to CLI-based applications only.

It also says

Tip Consider using parallel instead.

Sponsor our Newsletter | Privacy Policy | Terms of Service