Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I delete the cgi-bin folder in a subdomain I just created?

Using cpanel on my hosting account, I created a subdomain - e.g. www.clothing.mysite.com

A cgi-bin folder was automatically created in the directory for clothing.mysite.com. Do I need it? I'm only using the subdomain to install wordpress on it. I don't really understand what the cgi-bin folder is for and I'm happy to leave it if it doesn't harm anything. Any thoughts?

like image 414
Margo Avatar asked Feb 23 '10 20:02

Margo


People also ask

Can I delete CGI-bin folder?

Can you delete cgi-bin? The cgi-bin is located in the directory root of your website. If there are no scripts stored in that folder, you can delete that folder. It should not be a problem with your website.

What is the CGI-bin folder for?

A CGI-bin is a folder used to house scripts that will interact with a Web browser to provide functionality for a Web page or website. Common Gateway Interface (CGI) is a resource for accommodating the use of scripts in Web design.

Where is the CGI-bin directory?

If you look in the /var/www (the document root of Apache), you will find a sub-directory called cgi-bin. This is not where your Perl programs and other various files will be placed. Within the /usr/lib/ directory, you will find another cgi-bin directory; it is the repository for your executables.

How do I create a CGI-bin folder?

Open your Filezilla program and connect to your website. When you are in your top-level directory, (Where you see "public_html") Right-click anywhere in the the window and select "create directory." Simply name the directory "cgi-bin" You're done!


2 Answers

cgi-bin historically was the only place where executable or script code (binaries, shell scripts, etc.) could be stored. It is mostly a historic relic since most hosts allow execution of scripts from anywhere.

like image 107
David Pfeffer Avatar answered Oct 02 '22 10:10

David Pfeffer


You can safely delete it. "cgi-bin" is hardly ever used these days.

like image 41
janmoesen Avatar answered Oct 02 '22 10:10

janmoesen