简体   繁体   中英

How can i prevent cgi-bin of being automatically created?

A cgi-bin folder was automatically created in the directory for my site. I don't use that folder at all because I don't need it. I don't know how to permamently delete it.

How can I achieve that? It creates itself every now and then.

If using cPanel, edit /etc/bashrc and comment out these lines:

if [ ! -e ~/public_html/cgi-bin ]; then
mkdir -p ~/public_html/cgi-bin
fi

You may need your administrator or web host to do this if you don't have access.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM