-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpanel migrate - CGI folder and some scripts have been setup #940
Comments
Hmm, that's odd that those CGI wrappers would be created when they aren't needed! To help debug this, it would be useful to see the output from the migration process. Also, if you create a new domain on your system, does it get those |
Is this the text that appears on screen while migrating? I will runs some tests, clarify and get you the information. |
What I have done
my thoughts
requested detailsCreate New site - no folders - (From my dev site)![image](https://github.com/user-attachments/assets/49a04ee8-0cf5-4598-95a2-2ebee0995a8d)
Import site - no folders - (From my dev site) - this in my live site had the CGI files![image](https://github.com/user-attachments/assets/49a04ee8-0cf5-4598-95a2-2ebee0995a8d)
|
Hmmm ... I'm not sure what could be going on here then. Maybe the default PHP mode wasn't set to FPM when a domain was imported, and thus those |
I don't have the php CGI mode available as I removed it. I think I removed php-cgi module for each php version. I did have them installed at one point, I think. Only php-fpm is available. It is almost like some of the behind the scenes handling of php-cgi is being triggered as if it were installed. Parts of the template system might be being ignored for php when you import. Are there hardcoded rules for handling CGI? Is the import saying cpanel had CGI so I will now add CGI files? Tricky one. I can't see anything obvious. |
No, we don't even get the PHP mode from the cPanel backup. Hard to say what's going on here unless it can be re-produced, as I don't see any obvious trigger for this in the code. |
Actually ... I did find one code path where the |
Even with this patch, if this function is called, like in FPM mode, it will still default to Why not just add after return if ($mode !~ /cgi/); |
But cgi-bin directories are different from PHP .cgi wrappers. I will clean up those |
the issue
I imported a cpanel account in to virtualmin and it has created the following folder and CGI scripts
proposed solution
Don't install CGI stuff when CGI is not selected.
The text was updated successfully, but these errors were encountered: