Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic CGI/web server question (I believe)

Status
Not open for further replies.

greedyzebra

Technical User
Sep 5, 2001
140
US
Are the scripts/apps located in the cgi-bin directory the only processes that are threaded by the web server?

The reason I ask: My cgi-bin application is going to be using an application that exists on the web server (but is not publicly accessable). Since there could be multiple users using the CGI ap, there could obviously be mutliple calls to execute the non-cgi-bin application.

TIA,

Tom
 
The web server doesn't fork that additional process, your program does that. //Daniel
 
Typically, a web server is setup to run only those programs found in or under the cgi-bin directory.

However, once a CGI program is started by the web server, that program can call any other program it likes, provided it can see it and has sufficient permissions. For instance, if you install a program in your local(home) directory and set the permissions to -rwxr--r--, then the web server will not be able to run it. Set the permissions to -rwxr-xr-x and the web server will be able to run it.

Be careful. This stuff opens some serious security issues. See Lincoln Stein's security faq at 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top