I performed an in-place upgrade from RHEL 7 to RHEL 8, and then to Rocky 8. All went swimmingly. The issue I am having right now is attempting to visit a PHP based website hosted on the node results in an HTTP 500.
I get the following error when I try to set the PHP version for the website:
Failed to save PHP options : The suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin virtual server home directory is /home. CGI scripts run as domain owners will not be executed
I found another post where someone wasn’t running the Virtualmin provided HTTPD packages. I have the Virtualmin repo enabled, however it is not showing any Apache packages available under Rocky 8. The apache packages I have installed right now on this system came from the Rocky repos, not Virtualmin.
Thanks for the reply! Sorry for the delay, finally got around to looking at this again.
I did as you suggested and after a few small things during the checkup, it all passes now. After doing that, “FPM” is the only PHP manager available now for the site, fcgi option went away. I do have fcgiwrap installed.
I have set the site to FPM now, however I still get the same error. When I look at the FPM logs, it is showing the following:
[03-Jun-2022 11:13:21 America/Chicago] PHP Warning: require_once(/home/southern/public_html/wp-config.php): failed to open stream: Permission denied in /home/southern/public_html/wp-load.php on line 37
[03-Jun-2022 11:13:21 America/Chicago] PHP Fatal error: require_once(): Failed opening required ‘/home/southern/public_html/wp-config.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /home/southern/public_html/wp-load.php on line 37
The FPM config file for this site is correct, and I have verified there is a process running for this pool that is running under the user account: