LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache & cgi scripts (https://www.linuxquestions.org/questions/linux-networking-3/apache-and-cgi-scripts-210294/)

maze_fire 07-27-2004 02:34 PM

apache & cgi scripts
 
ok, in a nutshell here is my problem...maybe someone has had this happen to them and found the problem...

i am trying to get a small web hit counter to work on my web page that i run off of a rh9 box at my house....

i put a small, test cgi script together that says "Hello, World!" when called from index.shtml, by using <!--#exec cgi="/cgi-bin/hello.cgi"-->

it calls the script when you view index.shtml through web browser...however, if i change the "/cgi-bin/hello.cgi" to "/cgi-bin/gc.cgi" (respectively) when i load index.shtml, the web page displays, but where the hit counter should display (where the <!--#exec cgi="/cgi-bin/gc.cgi"--> code is), nothing is there...if i change it back to call hello.cgi and reload index.shtml, it displays "Hello, World!" as it should...

i believe i have all of the files in the correct place.. i have ips.log, counter.log and gc.cgi in /cgi-bin & i have the .gif files for the graphical counter in a dir that i created under /www called /images/digits...

one part of the gc.cgi script asks to specify a location where the image files are located, and the example given is a "http://your.webapgename.com/images/digits/", which i have plugged in URL for my web page and have created the /images/digits dirs and placed the .gif files in the digits directory....i've checked and the permissions of the script is 705 (same as the hello.cgi).. i've tried everything i can think of...pleeeeeez help...thanks in advance!!

maze_fur :P

maze_fire 08-12-2004 02:58 PM

nevermind....got it to working.. :P


All times are GMT -5. The time now is 10:44 AM.