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

こ雲淡風輕ζ 提交于 2019-12-03 02:30:57

问题


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? Thanks guys!


回答1:


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




回答2:


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.




回答3:


You can safely delete "cgi-bin" folder, it's hardly ever used nowadays

Also beware that when your server got some malware scripts scans different folders and then hides on folders like cgi-bin because they rarely are checked now.

I even wrote a script before that "monitors" different folders in my server and alerts me if it found different scripts in there on my personal and clients servers too.



来源:https://stackoverflow.com/questions/2321572/should-i-delete-the-cgi-bin-folder-in-a-subdomain-i-just-created

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!