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

Using cpanel in my hosting account, I created a subdomain - for example. www.clothing.mysite.com

The cgi-bin folder was automatically created in the clothes directory .mysite.com. Do I need this? I use only a subdomain to install wordpress on it. I do not quite understand what the cgi-bin folder is, and I am glad to leave it if it does no harm. Any suggestions? Thanks guys!

+68
subdomain cgi-bin
Feb 23 '10 at 20:45
source share
3 answers

You can safely remove it. "cgi-bin" is almost never used today.

+65
Feb 23 2018-10-23 at
source share

cgi-bin historically been the only place where executable code or script code (binaries, shell scripts, etc.) could be saved. This is basically a historical relic, as most hosts allow you to execute scripts from anywhere.

+71
Feb 23 2018-10-23 at
source share

You can safely delete the cgi-bin folder, which is hardly ever used currently

Also be careful when your server has received some malware, scans different folders, and then hides in folders like cgi-bin, because they are rarely scanned.

I even wrote a script before it โ€œcontrolsโ€ different folders on my server and warns me if it finds there different scripts on my personal and client servers.

+7
Aug 13 '16 at 16:21
source share



All Articles