Web Servers on Windows - APACHE 2.0.42 (Win32) Cannot run C++ Scripts

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > June 2004 > APACHE 2.0.42 (Win32) Cannot run C++ Scripts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author APACHE 2.0.42 (Win32) Cannot run C++ Scripts
Will

2004-06-30, 7:48 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com