LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2004, 02:34 PM   #1
maze_fire
LQ Newbie
 
Registered: Feb 2004
Location: B'ham, AL
Distribution: RH9 - Shrike
Posts: 25

Rep: Reputation: 15
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
 
Old 08-12-2004, 02:58 PM   #2
maze_fire
LQ Newbie
 
Registered: Feb 2004
Location: B'ham, AL
Distribution: RH9 - Shrike
Posts: 25

Original Poster
Rep: Reputation: 15
nevermind....got it to working.. :P
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant run CGI scripts on Apache! mylo2003 Linux - General 5 11-09-2004 09:22 AM
help setting up Apache to use cgi scripts limiter Linux - Software 2 03-25-2004 01:59 PM
configuring apache for cgi scripts ash_r_c Linux - Software 1 09-23-2003 04:03 PM
Apache 2.0.43 will not run cgi scripts RobbieRoy Linux - Networking 5 09-04-2003 02:56 PM
Apache cgi scripts! boyinfrance Linux - Newbie 2 06-22-2002 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration