Link to home
Start Free TrialLog in
Avatar of Bigpaws
Bigpaws

asked on

Apache CGI Works alone, but not in HTM file

I'm migrating from a WN server to an Apache server. I have several scripts which ran fine on WN, but on Apache, they don't.  

In order to attempt to understand what's going wrong, I downloaded the simplest CGI I could find - a text counter (countit.cgi).  I was able to set it up and get it to work on its own eg, http://www.blah.com/countit.cgi, however, if I try to get the text embeded in an HTML file, nothing gets returned.  When I look at what the server returned inside the HTML file, I see that it didn't do anything with the exec statement.  I also tried the include virtual as listed in the apache.org docs on the subject (i.e., <!--#include virtual="cgi-bin/counter/countit.cgi" --> ) and that did the same thing, the text <!--#include...etc.. is included in the HTML returned, and not interpreted by PERL.

What's goin' on here?

Bill
:-=>  
ASKER CERTIFIED SOLUTION
Avatar of djsansui
djsansui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bigpaws
Bigpaws

ASKER

I'm not actually the one setting it up.  Does this mean, once I get the admin to set it up, all the files have to be named .shtml?  
GREETINGS!

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thank you,
Moondancer
Moderator @ Experts Exchange