Since a few version of virtualmin I had some problems with checking the server configuration.
The problem is that I have manually patched suexec and the php fcgid script is in /var/www and not /home.
I had this error for quite a while but last week I fixed it. It was quite simple. Just change this code in /usr/share/webmin/virtual-server/feature-web.pl
:
1 2 3 4 5 6 7 8 9 10 11 | # Make sure home base is under base directory, or template CGI directory is if ($tmpl->{'web_suexec'} && $suhome && !&same_file($suhome, $home_base) && !&is_under_directory($suhome, $home_base) && (!$cgibase || !&is_under_directory($suhome, $cgibase))) { return &text('check_ewebsuexechome', "$home_base", "$suhome"); } return undef; } |
To:
1 2 3 4 5 6 7 8 9 10 | # Make sure home base is under base directory, or template CGI directory is return undef; if ($tmpl->{'web_suexec'} && $suhome && !&same_file($suhome, $home_base) && !&is_under_directory($suhome, $home_base) && (!$cgibase || !&is_under_directory($suhome, $cgibase))) { return &text('check_ewebsuexechome', "$home_base", "$suhome"); } return undef; } |
So just add return undef;
to the top of that piece of code. Then it will step out of the function before the additional check is executed.
1 2 3 4 5 6 7 8 9 10 | # Make sure home base is under base directory, or template CGI directory is if ($tmpl->{'web_suexec'} && $suhome && !&same_file($suhome, $home_base) && !&is_under_directory($suhome, $home_base) && (!$cgibase || !&is_under_directory($suhome, $cgibase))) { return &text('check_ewebsuexechome', "$home_base", "$suhome"); } return undef; } |
Comments