Today, Cristian Andrei Calin asked on the AOLSERVER mailing list (and here’s my final response containing the solution outlined below) about getting PHP working under AOLserver. Specifically, trying to get phpBB2 working, which was causing AOLserver to crash. So, being the ever-so-eager-to-help self, I decided to download the latest phpBB2 code and try and install it.
After lots of walking of stack-traces of core dumps in gdb, it dawned on me: I should check the per-thread stack size in AOLserver! Duh. Yes, I had it set to the default of 128KB. Increasing it to 1MB made everything work perfectly.
To check what your server’s current stack size is, connect to the control port (aka “nscp into your server”) and issue the command:
nscp> ns_config ns/threads stacksize 131072
There, it’s telling me that the stack size is 131,072 bytes (or 128KB). Increase it by modifying your config .tcl file like so:
ns_section "ns/threads" ns_param stacksize [expr 1024 * 1024] ;# 1MB
For sites that run a lot of PHP, you may want to increase it to 4MB or even larger, depending on your needs.








March 12th, 2010 at 10:30 pm
Mikki: I would hazard a guess that any reasonably experienced technician should do an adequate job. Obviously, every individual ...
March 12th, 2010 at 9:52 pm
Okay...now you have me worried...I've had my WONDERFUL Bosch washer/condensation dryer for about 8 years without a problem (okay so ...
March 11th, 2010 at 8:45 am
I'm not sure, but I'm guessing it's the belt that turns the drum - may be too tight, may be ...
March 11th, 2010 at 6:57 am
Hello all. I now have a different problem. The drum groans as it spins. When you try ...
March 10th, 2010 at 9:35 pm
Hi Dossy, Thanks much for sharing the knowledge with others. This article helps me to avoid DISM errors : ...