Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Sharing a Website Upload the Website

Michelle Wallace
Michelle Wallace
2,376 Points

I noticed you mentioned we don't need cgi-bin... When is cgi-bin required? I.e. when is it not OK to delete it?

Or which video should I watch to find this out :-)

2 Answers

James Barnett
James Barnett
39,199 Points

In practice you are unlikely to use cgi-bin. However if you wanted to use Ruby or Python to add programming logic to and HTML page instead of using PHP cgi-bin could help you do that.

further reading

http://xmodulo.com/create-use-python-cgi-scripts.html

Michelle Wallace
Michelle Wallace
2,376 Points

Thanks that's just what I was looking for :)

Devin Scheu
Devin Scheu
66,191 Points

cgi-bin isn't required in the course that your working on, its just a general thing because workspaces doesnt just take HTML and CSS. You'll never use it once in the course. You should take small steps and not jump into everything at once. Nick is a great teacher and he will show you everything you need to know :). Hope this helps!

Michelle Wallace
Michelle Wallace
2,376 Points

Hi Devin, I was just asking as I have a Wordpress website I host and I am aware that it has this file in the directory. I am just trying to understand what it is used for and if it can be deleted here also. Not trying to jump ahead as such just form a greater understanding of why, which I think will also make it easier to remember, for me personally. Nick is indeed a very good teacher! Thanks for replying and trying to help :)