RE: Apache CGI error

Ok, here is the scoop.
 
I had to make a configuration change on my VS Studio 2005 project.  The path
references for the library files of MySQL were only entered in the Debug
Configuration.  So once I changed the configuration to all, and entered the
library paths and such, then I was able to make a release build with no
errors!
 
I then copied the EXE to the other server, and it ran just fine.
 
So it looks like the Debug build does not have everything in it.
 
Thanks for everyone's help in making me think things through differently.
 
-Rodney
 

  _____  

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Octavian Rasnita
Sent: Thursday, January 24, 2008 12:35 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Apache CGI error


Probably. I don't know C at all. Maybe you'll just need copying some dlls on
your computer and it will work...
 
Octavian

----- Original Message ----- 
From: Rodney  <mailto:RHaynie@xxxxxxxxxxx> Haynie 
To: programmingblind@xxxxxxxxxxxxx 
Sent: Thursday, January 24, 2008 2:55 PM
Subject: RE: Apache CGI error

Thank you.  I thought of trying this late last night.
I have a sample cgi file someone else wrote in c and it works just fine from
Apache and the command line.  
 
I tried running my file on the server on the command line and it will not
execute.  So the problem is not with Apache configuration.  The file will
run fine on my laptop, but that is the same computer I used to build the
exe.
 
The last post I just made said I built the solution in Debug.  I just tried
and it is failing to build correct for Release.  There are a couple external
library files that are built in correctly (or referenced correctly) when I
build in Debug mode.  But when I set the switch to Release, the solution
failed to build.  Looks like I need some kind of separate build setup for
Release in Visual Studio 2005?
 
 

  _____  

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Octavian Rasnita
Sent: Thursday, January 24, 2008 1:13 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Apache CGI error


Have you checked if the cgi program can be run in command line?
Does the program have the necessary permissions in order to be ran by the
user that runs the web server?
 
Try to search that error with Google and maybe you will find something. I
don't think there are too many programmers that create cgi programs in C.
 
Octavian

----- Original Message ----- 
From: Rodney  <mailto:RodneyH@xxxxxxxxxx> Haynie 
To: programmingblind@xxxxxxxxxxxxx 
Sent: Wednesday, January 23, 2008 11:46 PM
Subject: Apache CGI error

I wrote a cgi file using VC++ on my laptop.  I tested it on my laptop's
apache server.
 
I just setup a Apache server on another box, that does not have Visual
Studio 2005 or VC++ installed on it.
 
I feel very good about the Apache configuration file being correct.  But
when Igo to access the CGI file through a CGI post I get an error.
 
I then downloaded and installed the VC++ SP1 2005 libraries straight from
Microsoft and installed them on the box.  Still I get the same error.
Anyone have an idea?
 
The error is pasted below from the Error.log file.
 
[Wed Jan 23 07:51:49 2008] [error] [client 88.168.75.29] (OS 14001)This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem.  : couldn't
create child process: 734001: myPost.cgi
[Wed Jan 23 07:51:49 2008] [error] [client 88.168.75.29] (OS 14001)This
application has failed to start because the application configuration is
incorrect. Reinstalling the application may fix this problem.  : couldn't
spawn child process: C:/www/app/webroot/cgi-bin/myPost.cgi

Other related posts: