To fix WordPress installation issue you would have to run the following commands using console or command shell —
For RHEL/CentOS/Alma/Rocky
~# cd /usr/libexec/webmin/virtual-server
For Debian/Ubuntu:
~# cd /usr/share/webmin/virtual-server
For all distros - RHEL/CentOS/Alma/Rocky/Debian/Ubuntu
~# wget -N https://raw.githubusercontent.com/virtualmin/virtualmin-gpl/b6838abc1f4f164c8a2de0726509733c14854520/scripts-lib.pl
~# /etc/webmin/restart