Cannot install web module php myadmin

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.1
Virtualmin version 7.20.2

I try to install the standard php myadmin web module and get
Fatal Error!
Failed to install web app : Could not find PHP version for /home/xxx/public_html/phpmyadmin
note I replaced the server name with xxx here

php is installed and seems to be running fine

how to solve / troubleshoot?

Click on the php here that will give you phpinfo for that virtual server.
If that looks fine, then its got my stumped.

I just tested on the example virtual server and script is fine.

We can’t even begin to guess without more information.

Did you add or remove PHP versions without running a Re-Check Configuration after?

Did you install mod_php?

Show us what’s on the PHP Options page for this domain.

That maybe the issue.

You maybe better using docker then it won’t interfer with virtualmin, I see they have a image for it.

https://hub.docker.com/r/frappe/erpnext

That sounds like a problem. I’ve never heard of erpnext, but if it’s installing custom stuff, or modifying configuration, you’ve probably got your work cut out for you. You need to figure out what it’s doing differently from the standard OS packages in a fresh install that’s breaking Virtualmin. PHP works fine when Virtualmin is installed as documented.

The nginx config file error seems to indicate the nginx version is not a standard OS package.

You may want to isolate erpnext on its own virtual machine, and use Virtualmin independently of that.

Thanks all. Install virtualmin first I think is the general idea. It was worth a Try.

If they’re pulling in custom nginx and mariadb or doing something unusual with configuration, it probably won’t help to install it after. Something will probably still get broken. If you really need them to run on the same system, you’ll need to look into what both are doing.

Our installer, dependencies and configuration changes are all public in our github, you’d want to look at the Virtualmin-Config repo for the config changes, and the virtualmin-lemp-stack package for our dependencies…all of the packages we use, aside from our software, comes from the OS standard repositories. The lemp-stack package is derived from the virtualmin-lamp-stack-ubu repository, with an automated change to remove Apache deps and replace them with nginx.

You’re on your own wrt erpnext, I don’t know anything about it.