Am migrating all of my Virtualmins from my longstanding Vm6 server to my new Vm7. I have restored the first site, no errors, and no PHP errors recorded after turning PHP logging on. But the site page comes up as:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
though it does bring up the favicon. Apache error logs show:
mod_fcgid: error reading data from FastCGI server
I have checked permissions in the site folder, it all looks good. Have set PHP execution to FPM. No change. Thoughts?
When you upgraded to vm7 did you change your os (eg ub 22.04 → 24.04) ? If so you may find the version has changed and your configuration may be looking for a version of php that is not installed on your system
Now that is most interesting. Indeed, OS was changed just like that. I’ll suspect that that is the problem, but I’m not sure of resolution. In /home//fcgi-bin, I have:
php5.fcgi php7.0.fcgi php7.2.fcgi php7.4.fcgi
and the PHP I have is 8.3.6. So just now I copied php7.4.fcgi to php8.3.fcgi, changed paths in the file to match (and verified that they refer to real things), restarted apache…and no change And then I checked Directives and saw the same kinds of things, so changed those. No change.
So then I did what I should have done before I asked for support :-), created a new test site, and checked directives. And wow. Dramatic simplification. All I had to do was delete a lot of the old, paste in the new, and it began working as expected.
I just copied the above from new-default-test to imported, and it worked, but it looks to me like I might need to generate that .sock filename separately for each imported site for it all to work right. Do you think?
while I only use RedHat, in general I believe that php-fpm and/or Virtualmin will create the SOCK file for you … its totally automatic – you should not need to do anything by hand
All you need to do is edit the domains php options to suit what you want, in your case as the versions of php did not exist it maybe a case of disabling php, saving that then re edit and choose fpm, I guess this will write all the configuration for you