0

This days, my server has a problem.

2 different PHP process can't run one time.

Let's say if I has a PHP process running within 30 seconds.

I want to run another PHP process at the same time while first process still running and not yet done. But the 2nd process can't run right away, it will wait for the first process done then it run after that.

This doesn't happen earlier.

How to fix that?

Example php files:

file1.php:

sleep(30); exit('done);

file2.php:

exit('done');

My server use plesk, php 7.x PHP-FPM Nginx

Tim Diekmann
  • 7,755
  • 11
  • 41
  • 69
Thinh Phan
  • 95
  • 1
  • 1
  • 8

1 Answers1

0

Ok, so this is the cause of my problem.

I used session_start() in both file, and when the first one running, the season locked, the 2nd file must wait until the locked release.

Thanks @LawrenceCherone for your answer

Thinh Phan
  • 95
  • 1
  • 1
  • 8