This is a discussion on APACHE 2.0.42 (Win32) Cannot run C++ Scripts within the Windows Web Servers forums, part of the Web Server and Related Forums category; My fellow programmers, I have a problem and hope one of you can help me with it. I have installed ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
My fellow programmers,
I have a problem and hope one of you can help me with it. I have installed Apache 2.0.49 on my machine (Win 2000 Pro). After successfully configuring the server, I was able to successfully compile and run several Perl and c++ server scripts (stored in the cgi-bin) folder. However, the problem arises in one of my C++ programs the uses a big stack array. I'm able to run this very program from the win command line, but when I try to run it from the cgi-bin, the program ends "prematurely". I tried to decrease the size of the array, in which case the program runs ok from the cgi-bin. I think that there must be an Apache memory limit that prevents the program for running. I read the Apache documentation and tried to change directives like: RLimitMEM RLimitNPROC RLimitCPU RLimitMEM MaxMemFree MCacheSize in the httpd file, but I'm getting errors like: "The Apache service named reported the following error: RLimitMEM not supported on this platform." ... etc. Does any one know how to change Apache(Win) settings so that I can run this script? Much Obliged Will |