On this fresh install of Virtualmin, when I set the PHP execution mode to Disabled on one of the virtual servers, I expect to see raw HTML being served when I visit the URL in a browser; however I see the website being served under user apache:
It is not. At least not on a shared hosting system.
Iām surprised disabling all execution modes causes the default php-fpm to be used, there must be some handlers in the Apache config files that ship in the php-fpm package. Iāll have to look into that, as I donāt want people being surprised by this potentially dangerous situation.
You can stop/disable the php-fpm service and only use the Virtual Server specific php-fpm instances.
The browser has no useful information. You need to look at the log.
Did you have a chance to look into this, Joe? @calport is working on our server.
It still runs php-fpm even though all virtual serversā execution modes are set to ādisabledā. When we switch to php-pm mode, after a short period we get āGateway Timeoutā and have to restart the server to clear it and switch back to ādisabledā which is runs better albeit as user āapacheā.
Maybe the two things are mutually exclusive - there are probably tweaks to php-fpm that we can make and also tweaks to resource intensive scripts.
FYI the previous server was CentOS7 running PHP FCGId.
I didnāt say I was going to look at your system/problem. I was waiting on additional information about why running the application as the user is failing.
I will look into making it so that disabling all execution modes actually disables running PHP entirely. But, if yāall want my help solving the issue with apps not running, I need to see actual errors. The browser knows nothing useful.