I wouldn't use pcntl_fork on Apache as you can eat up RAM easily.
Action Controller does not have a way to run tasks in the background, but you can try running
shell_exec("nohup ./script/my_long_lasting_script > /dev/null 2> /dev/null & echo $!");
which might work better.
1 to 2 of 2