I want the cgi-bin folder to stop coming back to my public_html folders once I delete them. I disabled CGI for the account. Any advice?
I want the cgi-bin folder to stop coming back to my public_html folders once I delete them. I disabled CGI for the account. Any advice?
bump * bump * bump
What command is causing the cgi-bin folder to reappear on the account? Is it the nightly upcp or what precisely? At this point, we would need more information on what is triggering the folder to re-appear to track down how to prevent it.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
I tested removing the cgi-bin folder on an account on a cPanel machine, switching CGI to off in WHM > Account Modification area, then using FileZilla to FTP into the account. The cgi-bin folder did not reappear at that point.
Next, I tried running /scripts/upcp --force on the machine, and again the cgi-bin did not reappear on the account.
We'd need confirmation on what is triggering the folder to re-appear. Since I cannot reproduce the issue, I cannot say how to prevent it.
Of note, if it does end up being FTP that triggers it in your case, please provide your FTP client details (what client you are using). If this is something like FrontPage, then it is likely re-adding the folder when publishing. For further details, you may also want to provide the full FTP log from login until the folder appears so we can view the command history.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
I'm having difficult recreating it as it appears to be almost random to me, but I'll see what I can do. "* Automatically create a cgi-bin script alias. This setting can be individually overridden during account creation." is already set to "No." Note that I am using sFTP through WinSCP.
Now I'm starting to think that it has something to do with SSH/sFTP, because when I connect with FTP, it doesn't seem to create the folder.
Having noticed this lately, and coming across this thread, I did some testing. I can confirm that the cgi-bin folder is being re-created as soon as I connect via SFTP.
█ .:GG: Web Hosting -- The ultimate Web hosting!
█ Digital (SSL) certificates, domain registration, Web hosting (dedicated/shared), WHMCS Addons, ...