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.

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.

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.

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.

Click to expand...

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.