Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This problem happens more often on Windows platform, because of smaller Apache's default stack size. There is 1 MB default stack size on Windows, unlike 8 MB on Unix/Linux platforms. It could be a reason, why some for example PHP scripts works properly on Linux, but cause crash of Apache on Windows.</p> <p>Furthermore, the crash is silent (<em>segmentation fault</em>), there is no error message, Apache just stops responding and the child process is restarted. Browser gets no data and renders a blank page, so it's a bit difficult to decide what's wrong.</p> <p>It's a common problem when working with <strong>long regular expressions in PHP</strong>.</p> <p>There is one notice in Apache's error log only, which tells, that child process crashed:</p> <pre><code>Parent: child process exited with status ... -- Restarting </code></pre> <p>The best way to alter the Apache's stack size is using the <strong>ThreadStackSize</strong> directive in the Apache's configuration file. There is a description of the <strong>ThreadStackSize</strong> directive in Apache's documentation: <a href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#ThreadStackSize" rel="noreferrer">http://httpd.apache.org/docs/2.2/mod/mpm_common.html#ThreadStackSize</a></p> <p>So increase of the Apache's stack size on Windows might looks like this:</p> <pre><code>&lt;IfModule mpm_winnt_module&gt; ThreadStackSize 8388608 &lt;/IfModule&gt; </code></pre> <p>These lines should be put in the Apache's configuration file. For simplicity, you could put it to <strong>httpd.conf</strong>. Or better (but not necessary), put it to <strong>httpd-mpm.conf</strong> file and in <em>httpd.conf</em> uncomment this line:</p> <pre><code>Include conf/extra/httpd-mpm.conf </code></pre> <p>It sets Apache's stack size to 8 MB, so it's the same as a default value on Linux.</p> <p><em>And don't forget to restart Apache! :)</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload