I know this has been covered several times before and the cause has usually been attributed to not installing from the Virtualmin repo.
In this case I have a vultr.com instance which I invoked with their CentOS 8 image.
From that base I did the following through SSH
yum update -y
hostnamectl set-hostname
systemctl restart systemd-hostnamed
First time I also did
yum install perl -y
but the last time I omitted this since install.sh will do this for me.
I found that wget is already in CentOS 8 so no need to install that so on to
wget http://software.virtualmin.com/gpl/scripts/install.sh
chmod +x install.sh
sh install.sh
The script questions are quite clear and easy to answer, just as I have several times for CentOS 7.
However it fails in Webmin config as shown in Virtualmin install.sh support for CentOS 8
from which I learned to manually run /etc/webmin/restart and then re-run the installer script.
Having created a swap file the first time I had to answer NO to that the second time and the installer script completed without error.
In the post installer setup I chose the minimal options (it’s a 1GB memory instance), chose hashed passwords, and entered a blank SQL password. (as per Ilia’s post referenced above)
In the configuration check process a few issues were flagged.
-
“Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.”
I don’t think this is a problem. -
“SuExec cannot be used to run PHP scripts in CGI or FCGId modes : 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.”
It appears that I must have the “standard” suexed module, but I expected the install script to get the virtualmin version with /home. -
“The AWstats command /usr/share/awstats/wwwroot/cgi-bin/awstats.pl was not found on your system.”
I wonder if this is related to CentOS 8 not running cgi?
I’ve checked the repos enabled and they are
AppStream, BaseOS, extras, PowerTools (all CentOS)
epel-modular, epel (Extra Packages for Enterprise Linux Modular)
virtualmin (RHEL/CentOS), virtualmin-universal (Virtualmin Distribution Neutral Packages)
So my questions are:
- How can I fix the suexec issue? I’m not expert at compiling modues and installing)
Could it be caused because the CentOS base install was not “minimal” enough and the installed Apache was not replaced? - How can I fix AWStats?
Thanks in advance for any help.
Peter
PS. I also observed that the new Virtual Server template had not prefilled the default IPv4 address (IPv6 was prefilled). Perhaps that might link to the problem above?