|
|
|
|
![]() ![]() ![]() ![]() Group: Members
Posts: 74 Joined: 2-June 07 Member No.: 44,080 |
Post
#1
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. |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() myCENT:16.20 |
Post
#2
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. |
![]() ![]() ![]() ![]() Group: Members
Posts: 74 Joined: 2-June 07 Member No.: 44,080 |
Post
#3
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 ? |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() myCENT:16.20 |
Post
#4
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. |
![]() ![]() ![]() Group: Members
Posts: 45 Joined: 23-January 06 From: ------------------- Member No.: 17,526 |
Post
#5
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 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#6
May 23 2009, 01:29 AM
doh! what happens if i accidentally deleted that folder? |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#7
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 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#8
May 23 2009, 08:58 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.. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 5,876 Joined: 21-September 07 Member No.: 50,369 |
Post
#9
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 |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
2 | googlue | 4,508 | 2nd October 2004 - 05:52 PM Last post by: googlue |
|||
![]() |
6 | xsize | 4,555 | 23rd August 2009 - 04:17 AM Last post by: FruitRocks |
|||
![]() |
1 | Final)arkJon | 3,317 | 11th November 2004 - 03:21 PM Last post by: karloweb |
|||
![]() |
0 | iznabhero | 246 | 11th November 2008 - 11:38 AM Last post by: iznabhero |
|||
![]() |
6 | -Sky- | 1,608 | 19th September 2008 - 04:59 PM Last post by: -Sky- |
|||
![]() |
16 | shadowx | 1,596 | 28th July 2007 - 07:48 PM Last post by: alshow |
|||
![]() |
8 | -Nazrin- | 2,911 | 25th January 2005 - 03:52 PM Last post by: -SniR- |
|||
![]() |
23 | kylelnsn | 2,991 | 23rd June 2009 - 07:14 PM Last post by: iworld200 |
|||
![]() |
3 | hype | 802 | 11th May 2005 - 05:45 AM Last post by: hype |
|||
![]() |
9 | BooZker | 1,190 | 9th June 2006 - 09:00 PM Last post by: BuffaloHelp |
|||
![]() |
3 | jerrylili | 997 | 23rd June 2005 - 04:58 PM Last post by: snlildude87 |
|||
![]() |
16 | soleimanian | 20,764 | 8th July 2009 - 06:20 AM Last post by: iG-mangesh |
|||
![]() |
4 | delivi | 2,936 | 4th July 2006 - 11:52 AM Last post by: bakuryu |
|||
![]() |
3 | JField | 1,094 | 3rd January 2007 - 06:12 PM Last post by: delivi |
|||
![]() |
11 | Milk | 2,134 | 10th August 2005 - 09:01 AM Last post by: alperuzi |
|||
|
Open Discussion | Time is now: 26th November 2009 - 06:49 PM |
Web Hosting Powered by ComputingHost.com. Xisto.com : Honesty ROCKS! Truth Rules.