title: 500 Internal Server Error depending on external loaded files?
body: <p>I have an 500 Internal Server Error and most likely think in my case that loading external files is my issue here. 
  In my status bar I got the message <code>Waiting for available sockets...</code> before that happened.</p>
  
  <p>I found this information as I googled:</p>
  
  <blockquote>
    <p>PHP CODING TIMING OUT</p>
    
    <p>If your PHP script makes external network connections, the connections
    may time out. If too many connections are attempted and time out, this
    will cause a "500 Internal Server Error." To prevent these time outs
    and errors, you'll want to make sure that PHP scripts be coded with
    some timeout rules. Typically, however, catching a timeout error when
    connecting to a database or externally to remote resources (example:
    RSS feeds) are difficult. They, in effect, freeze the script from
    continuing to run.</p>
    
    <p>Removing any external connections can increase both the performance of
    your website and decrease the chances of you receiving a "500 Internal
    Server Error."</p>
  </blockquote>
  
  <p>1) I dynamically generate/load css and js files from my webserver (<code>*.php</code> files). So I don't know if the modern browser actually caches this or can't cache this at all and handles it as a new request every page load? Because PHP generates this depending on parameters given to tell which css/js should be loaded. Is this even THE issue or problem that can cause this 500 Internal Server Error?</p>
  
  <p>2) What Chrome extension can you recommend to track and debug all network data? What tools in general except Chrome DevTools could help me?</p>
  
  <p>3) The quoted text says I have to take care of timeouts. What are significant sources I should check? Could ajax requests or maybe php Sessions be the issue?</p>
  
  <p>4) Most importantly: How can I fix this error? The domain can be navigated at www.vaymodels.com if this helps to mention. I can't open it with any browser and not even with my Smartphone (disabled WiFi). Maybe someone of you could open it and view the page source.</p>
  
  <p>Also it is worth to mention that this behaviour had just begun in the last few days. I constantly uploaded files as I worked on my website and refreshed the domain a lot and randomly it didnt load at all for 5-10min. But it could be reached without the 500 error after that. Now it seems unreachable.</p>
  
  <p>Edit: My webhoster just told me they updated my FPM limit from 15 to 30. There were too many php processes he said. Could this be caused by mysql queries I'm executing through a file that is loaded via cronjob or what could be those processes I should look for and is most likely the issue?</p>