CGI is the abbreviation for Common Gateway Interface. This common gateway interface makes it possible for scripts to communicate with the server. The cgi-bin is a folder automatically created for you where you can place those scripts. A good example of this is the FormMail script which you can use to create a contact form for your site.

Can I delete the cgi-bin?

If you are not storing any scripts in your cg-bin, it shouldn't be a problem if you delete the folder, but it also doesn't hurt to just leave it in your account. Unless there are scripts stored in the folder, it isn't taking up any significant space. If you do delete the folder but find later on that you need the the cgi-bin for a script, simply recreate the folder and save your script in the cgi-bin.

Tips for Using the cgi-bin

  • Scripts that you store in the cgi-bin should have file permissions set to 755 in order to run properly. 
  • When adding the script tag to your site file(s) make sure you are using the full path to the script. For example:

    http://www.yourdomain.com/cgi-bin/yourscript.pl

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}