Koozali.org: home of the SME Server

how to run CGI scripts ??

Offline steve288

  • *
  • 336
  • +0/-0
how to run CGI scripts ??
« on: November 10, 2006, 09:55:01 PM »
I want to run cachemgr.cgi that is with squid.

I dont know how to run a cgi. Can anyone give me information on this??

Thanks.

Offline holck

  • *
  • 290
  • +1/-0
Re: how to run CGI scripts ??
« Reply #1 on: November 30, 2006, 08:23:58 PM »
Quote from: "steve288"
I want to run cachemgr.cgi that is with squid.

I dont know how to run a cgi. Can anyone give me information on this??

Thanks.


Probably it is easiest to do something like
Code: [Select]
# cp cachemgr.cgi /home/e-smith/files/ibays/Primary/cgi-bin/
# chmod 755 /home/e-smith/files/ibays/Primary/cgi-bin/cachemgr.cgi


Then you can point your web browser to http://server.name/cgi-bin/cachemgr.cgi

It is probably a good idea to delete the copy of cachemgr.cgi afterwards, so no outsiders get a chance to run the file also.
......