Nov 8, 2009

What Is The Cgi-bin Folder Used For ?

free web hosting
Open Discussion > MODERATED AREA > Trapper's Secret HideOut

What Is The Cgi-bin Folder Used For ?

omarsdali
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.

Comment/Reply (w/o sign-up)

jlhaslip
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.

Comment/Reply (w/o sign-up)

omarsdali
QUOTE
the cgi-bin is a place to run scripts from.


What kind of scripts ? Can you give an example ?

Comment/Reply (w/o sign-up)

jlhaslip
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.

Comment/Reply (w/o sign-up)

craz
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

Comment/Reply (w/o sign-up)

frozen.fish
doh! what happens if i accidentally deleted that folder? tongue.gif it doesnt seem to have any contents, does it?

Comment/Reply (w/o sign-up)

k_nitin_r
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

Comment/Reply (w/o sign-up)

frozen.fish
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

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : cgi, bin, folder,

  1. Fileop Failure On A Folder
    On cPanel (6)
  2. How Do I Acces My Www Folder And More?
    (10)
    Guys i want to change my WWW but im not sure how to do this i would be happy if anyone helps me also
    i have a mySQL created by navicat and i want to upload that so like ppl from my site can make
    account on my mySQL PLZ help me i would be really happy....
  3. /tmp Folder In File Manager
    (4)
    I know awhile back there was a question brought up about the /TMP folder taking up space, and if
    anyone remembers that topic do you remember if TMP was an acronym for temporary, and can you safely
    delete the contents in that folder? Right now I am cleaning out my hosting account and the files in
    that folder are the only ones taking up space at the moment.....
  4. Ftp 550 - Permission Denied [resolved]
    When I try to delete a folder (7)
    I installed a plugin and then I removed it from the ftp, but it seems their created folder is still
    in my directory. When I try to remove it, I got a FTP 550 Permission denied error, how can I fix
    this? I believe it is causing some problems with my other plugin. Also what is the default
    permissions for any file? Can I set them to be a certain permission level, because I need them to be
    able to execute. Here is the screenshot: ....
  5. Problem Removing Folder On Ftp
    (6)
    hello i've been trying to remove a folder on my ftp location here at trap17 but it doesn't
    seem to do anything at all if an admin or anyone else who has the capabilities can remove it,
    i'd be gratefull the foldername is XD-RedZone....
  6. Path To /.htaccess Folder?
    (2)
    Well - I'm trying to set up .htaccess for a password to a file on my site, but I can't login
    with the user and pass I gave. I think it's cause I don't have the whole directory. I'm
    using this site: http://www.tools.dynamicdrive.com/password/ This is my .htaccess: AuthName
    "Restricted Area" AuthType Basic AuthUserFile /.htpasswds/.htpasswd AuthGroupFile /dev/null
    require valid-user I noticed the htpasswds directory when I was looking around. I expect that is
    what it's for, right? Anyhow, does anyone know the path I need to use this?....
  7. Which Folder
    a noob question (4)
    On which folder should I upload all my website page files? there are lots of folders like www,
    public_html, public_ftp, etc, which one?....
  8. Public Hmtl Folder And Www Folder
    Something is wrong with the ftp (9)
    My website has been running fine until a few days ago. First thing i notcied was i made all my nav
    buttons rollovers and when i uploaded then via ftp the only one that changed was the home page
    ".../home.html" Then whenever i tried to upload anything else it wouldnt work. It says its
    uploading, but dosnt. I did all this uploading into the public html folder. Then after getting
    worried that i will not ever be able to update my site i tried one last place the www folder. What
    is that folder? It works when i upload stuff and the pages work now, but why and what is this fold....
  9. Cannot Delete Folder After Lost Ftp Connection
    permission not given to delete file (7)
    hello, well i had created a subdomain and was transferring files into the folder i was disconnect
    from the server many times while uploading the files via ftp once when i reconnect, i saw a file
    with an unusual name something starting with preftp... i tried deleting the file, but it said that
    permission was not granted to do that i tired deleting the complete folder and also tried deleting
    the subdomain from the cpanel but it was of no use can anyone help me with this? thx for your time
    Modified topic title. ....
  10. Public_html Or Www Folder?
    Where to put web files? (5)
    heh..im kind of new to this..but where to i put my pages that i want to show up? like in...
    public_html www ??? plz help hehe Naming your topic title carefully would and will help
    other members in the future. Please take topic title and description seriously. ....
  11. Which Folder..
    a lot of folders in my accoutn already.. (3)
    Hallo guys, /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> i logged
    into my ftp account useing smartFTP program (preety good btw). I see a lot of files and folders in
    my account already, but puzzeled to which one to upload my site into and what all teh other folders
    and file really does? In mine account right now there are: FOLDER: .fantasticodata mail
    public_ftp public_html tmp www FILES: .contactemail .contactsavetime .lastlogin index.html All
    those files and folders were there before i uploaded anything to my space. Which folder do....
  12. Folder Max Size.
    (3)
    Is there a way to restrict a folder max size or restrict uploading size to a certain folder from a
    public user? Like when the folder for guest to upload reach a max size of 500kb, it stops and doesnt
    allow anymore uploading to the folder.......
  13. Moving the contents of a folder
    PHP nulke installed there... (2)
    I want to move all the contents of a folder to another folder as I have pointed a domain to the new
    folder. Actually PHP nuke is installed in the folder that I want to move. What is the method to
    move? Is it as tedious as downloading everything to my PC and uploading again to the new folder, or
    is there a simpler method? If I move everything, will the SQL connection stay? or will it go
    beeping??? Thanks Googlue!....

    1. Looking for cgi, bin, folder,

Searching Video's for cgi, bin, folder,
See Also,
advertisement


What Is The Cgi-bin Folder Used For ?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com