Welcome Guest ( Log In | Register )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
      
 
Reply to this topicStart new topic
Where do you put the CGIs?
candide
post May 10 2008, 09:57 PM
Post #1


New Member
*
Posts: 1
OS: XP



I have implemented a simple server, KF server, on my computer, which works perfectly well. The function I wish to add to it is the ability to allow users to upload files and have them stored on my hard disk. This apparantly requires a CGI, and my question is: where do I put it? Most cites describing CGI's tell you to ask this question of your system administrator. But my system administrator is me, and when I asked me, me replied that he did not know! I feel confident that the server can handle CGI's because it contains parameters, such as the time-out for user responses, which refer to CGI's. Can I simply make a (password-protected) directory called "CGI-bin" and put all the CGI's in there?

While we are on the subject, I would welcome suggestions on where I can contain the simplest CGI to allow a user to upload a file. I should mention that there are only a small number of users, all of whom are trusted, and that my OS is XP.
Go to the top of the page
 
+Quote Post
**Brian**
post May 11 2008, 07:46 AM
Post #2


GeekU Junior
Group Icon
Posts: 742
From: Barre, VT USA
OS: Windows: 2000 Pro/XP Pro/Home/MCE/2003 Linux: Redhat and Debian



if you use a server and have a www directory, you should place all CGI's in the cgi-bin directory

drwxr-xr-x 5 root root 4096 2007-12-29 11:38 cgi-bin

bsbaker{pts/0}:/var/www>

(above is an example from a linux box I am a user of)

In linux, it resides in /var/www - However, it may reside in wwwroot or www, or whatever your config files state. All CGI's go in the cgi-bin directory - however, I am not sure if a password is required for CGI's to work, but your could have a password protected secure directory for your users, if your configs are set up for this. Make sure your permissions are set properly smile.gif

Good Luck!!!

Brian
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts  
0 / 155 26th May 2007 - 01:08 AM
manu08 started - last by manu08
No New Posts  
2 / 249 24th April 2008 - 04:46 PM
rocco1005 started - last by rocco1005
No New Posts  
1 / 127 29th June 2008 - 07:02 AM
el_jack started - last by SRX660
No New Posts  
1 / 115 29th June 2008 - 07:18 AM
el_jack started - last by SRX660
No New Posts  
6 / 350 16th August 2008 - 10:28 AM
tuxmaster started - last by Ltangelic

RSS Time is now: 10th October 2008 - 03:10 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.