|
|
What Is The Cgi-bin Folder Used For ? | ||
Discussion by omarsdali with 12 Replies.
Last Update: April 16, 2010, 1:13 pm ( View Rated (1) ) | |||
![]() |
|
|
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.
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.
QUOTE
the cgi-bin is a place to run scripts from.What kind of scripts ? Can you give an example ?
CGI scripts have been replaced with ASP and php for most sites, depending on the scripting languages supported on the Server.
Trap17 allows php.
You can get an idea of what it is here: http://en.wikipedia.org/wiki/Common_Gateway_Interface
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
QUOTE (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
Link: view Post: 445303
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..
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
QUOTE (k_nitin_r)
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.Link: view Post: 445303
Somehow I've never used the CGI folder or had any use for it. The thing is I've always set read/write permissions
in c-panel anyway(for example 0777 for full permissions) , which appears to be the same thing anyway,
without needing a CGI folder.
Also, if somebody could hack into your system why couldn't they just delete the contents of
the CGI folder anyway? Perhaps perl users would know more and have the full answers.
I hope that clarifies.
QUOTE (k_nitin_r)
The use of CGI is no longer recommended because it creates a separate Operating System process for handling a request.Link: view Post: 445303
A 404 is a page not found error code that the server automatically defaults to if it can't find an index. Upload, or replace the page in question with an index.Html file. You don't even have to put anything on it, but if you're planning on visitors, or even get them already it may be smart to put a page under construction banner up.
Sounds like a GoDaddy default 404, so you can ftp the file or use file manager on the GoDaddy website to upload with the built in utility.
-reply by SoliHost
Similar Topics:
Need Help Cant Run Cgi On Trap17 ...
Strange Folders In My Web Root Fold...
Undo Function For Folders In Window...
Have There Been Any Changes? PHP script not working anymore. (1)
|
(6) Trap17 + Computinghost(partner Site Question)
|
Loading...
HOME 






