Getting CGI-BIN to work in Apache

Thread Solved

Join Date: Apr 2006
Posts: 34
Reputation: Joncamp is an unknown quantity at this point 
Solved Threads: 0
Joncamp Joncamp is offline Offline
Light Poster

Getting CGI-BIN to work in Apache

 
0
  #1
May 22nd, 2006
I was writing a C++ CGI-BIN program, but couldn't get it to work in Linux Apache web server. It just seemed to display the c++ program as binary garbage in the Firefox browser, it didn't execute it like a CGI-BIN is supposed to. I put it in the /CGI-BIN/ directory and then it just didn't recognise it at all it seemed?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,054
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: Getting CGI-BIN to work in Apache

 
0
  #2
May 30th, 2006
Does the file have global execute privileges?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 34
Reputation: Joncamp is an unknown quantity at this point 
Solved Threads: 0
Joncamp Joncamp is offline Offline
Light Poster

Re: Getting CGI-BIN to work in Apache

 
0
  #3
May 31st, 2006
The cgi-bin program has all execute permissions, I log on as root in Linux when I use Firefox and try to view the output of the cgi-bin program. The cgi-bin program returns all output through Apache correctly, but does not recognize the stdin command line args from a form-post.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Linux Servers and Apache
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC