IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet

What Is The Cgi-bin Folder Used For ?


omarsdali
no avatar
Member [Level 1]
****
Group: Members
Posts: 74
Joined: 2-June 07
Member No.: 44,080



Post #1 post Dec 23 2007, 07:05 AM
I have a quick question for you guys,

I noticed that in CPanel, there is a cgi-bin folder under the www folder, and there is a cgi-bin folder that's created for every subdomain I have. What is this cgi-bin directory suppose to be used for ? And is it safe to just delete it ? Thanks in advance.
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 8)
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,947
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:16.20



Post #2 post Dec 23 2007, 03:01 PM
the cgi-bin is a place to run scripts from.
It takes up little or no space and there may be complications if you delete it, so until somebody comes along with further information, I would not delete it.
Go to the top of the page
+Quote Post
omarsdali
no avatar
Member [Level 1]
****
Group: Members
Posts: 74
Joined: 2-June 07
Member No.: 44,080



Post #3 post Dec 23 2007, 03:29 PM
QUOTE
the cgi-bin is a place to run scripts from.


What kind of scripts ? Can you give an example ?
Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
Group: [MODERATOR]
Posts: 4,947
Joined: 24-July 05
From: Linux, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:16.20



Post #4 post Dec 23 2007, 03:36 PM
No, I can't because I code in PHP, but cgi is named as "Common Gateway Interface" and is often PERL scripting, AFAIK.
CGI scripts have been replaced with ASP and php for most sites, depending on the scripting languages supported on the Server.
Trap17 allows php.
Go to the top of the page
+Quote Post
craz
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 45
Joined: 23-January 06
From: -------------------
Member No.: 17,526



Post #5 post Dec 23 2007, 11:10 PM
omarsdali, the cgi-bin folder is for cgi scripts that you want to be use to be executed.

You can get an idea of what it is here: http://en.wikipedia.org/wiki/Common_Gateway_Interface
Go to the top of the page
+Quote Post
frozen.fish
no avatar
Super Member
*********
Group: Members
Posts: 348
Joined: 25-March 09
From: Everywhere
Member No.: 78,941
myCENT:42.64



Post #6 post May 23 2009, 01:29 AM
doh! what happens if i accidentally deleted that folder? tongue.gif it doesnt seem to have any contents, does it?
Go to the top of the page
+Quote Post
k_nitin_r
no avatar
Super Member
*********
Group: Members
Posts: 442
Joined: 5-May 09
Member No.: 81,376
myCENT:79.63



Post #7 post May 23 2009, 03:28 AM
Hi!

A CGI script is just like a normal script, except that it is called using the Common Gateway Interface. The use of CGI is no longer recommended because it creates a separate Operating System process for handling a request.

A previous poster to this thread mentions about the use of Perl to create CGI scripts, but you can use just about any scripting language - you can even use PHP or Shell script! :-)

The purpose of the CGI script folder is that you can grant executable privileges to these scripts but can leave them as read-only. This helps achieve a higher level of security as a user can't abuse the system by uploading their own scripts and injecting code to call their scripts. The basic idea is that you shouldn't grant executable privileges wherever you've got write privileges and vice-versa.

Regards,
Nitin Reddy
Go to the top of the page
+Quote Post
frozen.fish
no avatar
Super Member
*********
Group: Members
Posts: 348
Joined: 25-March 09
From: Everywhere
Member No.: 78,941
myCENT:42.64



Post #8 post May 23 2009, 08:58 AM
QUOTE (k_nitin_r @ May 23 2009, 11:28 AM) *
Hi!

A CGI script is just like a normal script, except that it is called using the Common Gateway Interface. The use of CGI is no longer recommended because it creates a separate Operating System process for handling a request.

A previous poster to this thread mentions about the use of Perl to create CGI scripts, but you can use just about any scripting language - you can even use PHP or Shell script! :-)

The purpose of the CGI script folder is that you can grant executable privileges to these scripts but can leave them as read-only. This helps achieve a higher level of security as a user can't abuse the system by uploading their own scripts and injecting code to call their scripts. The basic idea is that you shouldn't grant executable privileges wherever you've got write privileges and vice-versa.

Regards,
Nitin Reddy


So it is safe to delete it right? is it really empty? the cgi-bin folder for the add-on domains? i can see the one for the main domain has contents in it.

cause i deleted mine via FTP and checked the trash bin, i dont think it will be in trash bin when you deleted it via FTP.. sad.gif
Go to the top of the page
+Quote Post
iGuest
no avatar
Hail Caesar!
*********************
Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



Post #9 post Yesterday, 10:00 PM
My site now says Opps! this link appears to be broken
What Is The Cgi-bin Folder Used For ?

I'm in the process of putting up my first site.  Using MattieBlaze for Hosting and FileZilla as my FTP Client.  Problem is when I opened the FTP Interface I deleted too many items on the lower right hand screen, things I thought were unrelated to the site itself.  Now when I type in the URL I get "Opps this link appears to be broken".  Error HTTP 404.

Please help, this is nuts. It's my first site.

Ralph 

-reply by Ralph
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 2 googlue 4,508 2nd October 2004 - 05:52 PM
Last post by: googlue
No New Posts   6 xsize 4,555 23rd August 2009 - 04:17 AM
Last post by: FruitRocks
No New Posts   1 Final)arkJon 3,317 11th November 2004 - 03:21 PM
Last post by: karloweb
No New Posts   0 iznabhero 246 11th November 2008 - 11:38 AM
Last post by: iznabhero
No New Posts   6 -Sky- 1,608 19th September 2008 - 04:59 PM
Last post by: -Sky-
No new   16 shadowx 1,596 28th July 2007 - 07:48 PM
Last post by: alshow
No New Posts   8 -Nazrin- 2,911 25th January 2005 - 03:52 PM
Last post by: -SniR-
No new 23 kylelnsn 2,991 23rd June 2009 - 07:14 PM
Last post by: iworld200
No New Posts   3 hype 802 11th May 2005 - 05:45 AM
Last post by: hype
No New Posts   9 BooZker 1,190 9th June 2006 - 09:00 PM
Last post by: BuffaloHelp
No New Posts 3 jerrylili 997 23rd June 2005 - 04:58 PM
Last post by: snlildude87
No new   16 soleimanian 20,764 8th July 2009 - 06:20 AM
Last post by: iG-mangesh
No New Posts 4 delivi 2,936 4th July 2006 - 11:52 AM
Last post by: bakuryu
No New Posts   3 JField 1,094 3rd January 2007 - 06:12 PM
Last post by: delivi
No New Posts   11 Milk 2,134 10th August 2005 - 09:01 AM
Last post by: alperuzi


 



RSS Open Discussion Time is now: 26th November 2009 - 06:49 PM

Web Hosting Powered by ComputingHost.com. Xisto.com : Honesty ROCKS! Truth Rules.