In devoloping CGI scripts, I noticed that my apache server set stack size as 10MB for apache users. However, my cgi script needs to invoke a C executable that requires a larger stack size. I wonder how to increase the stack size for apache users.
I tried the following 2 approaches:
(1) to modify the /etc/security/limits.conf" file to increase all users' stack size by adding
"* soft stack unlimited"
and
"* hard stack unlimited".
(2) to modify the httpd.conf by adding "ThreadStackSize 65536*1024" (64MB should be big enough).
However, apache users still had 10MB stack size (this information was obtained via "ulimit -a") after two modifications.
BTW, I am using redhat enterprise linux in my server.