2 requests at the same time on the same browser problem

  • Posted on April 20, 2014
  • mctompAsked by mctomp

Hello, i have a problem with my server while i’m trying to open 2 requests at the same time on the same browser…

for example: i’m trying to open a specific page and as long as he runs i can’t open a different page on the server in the new window until the first page has finished loading

is there a way to fix it?

I have on the droplets CentOS 6.3 x64 and i just installed: php (v 5.3.3) apache (Apache/2.2.15 (CentOS)) mysql (5.1.67) webmin

without any change of the configuration setting

Here is the info page

Thank you very much!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It’s likely that the user’s session is still locked i.e. the session file on the hard drive is open by the first request, and PHP has to wait for the session to be closed before running a second request. When you’re confident that the session will no longer be read/written to, use session_write_close() to close the session, free up the session file and allow another request to be processed.

Thank you for your help, <br> <br>I changed it and it still doesn’t work… <br> <br>

Try changing the prefork values to: <br> <br><pre> <br><IfModule mpm_prefork_module> <br> StartServers 5 <br> MinSpareServers 5 <br> MaxSpareServers 10 <br> MaxClients 150 <br> MaxRequestsPerChild 0 <br></IfModule> <br></pre> <br> <br>and restart apache.