This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
Basically I have a php script in a sub server (sub domain), and I upload a php script and try to run it but it doesn't run? It just shows me the php code, how to fix that? Thanks!
Ah, yeah, it sounds like the Sub-Server Template may be configured to set new Sub-Servers to "mod_php".
To correct that for new domains, go into System Settings -> Server Templates -> Settings for Sub-Servers -> Apache Website, and there, make sure "Default PHP execution mode" is set to FCGID.
Howdy,
If you go into Server Configuration -> Website Options for that Sub Server, what is the PHP Execution Mode set to?
-Eric
PHP Script execution mode is set to : Apache mod_php (run as Apache's user)
What if you set it to FCGI or CGI, do PHP scripts begin to work as expected at that point?
-Eric
If I set it to CGI wrapper, it loads slow but works. If I set it to FGCId, it loads fast and well.
(My main domain is auto-set to FGCId, does that explain it?)
Howdy,
Ah, yeah, it sounds like the Sub-Server Template may be configured to set new Sub-Servers to "mod_php".
To correct that for new domains, go into System Settings -> Server Templates -> Settings for Sub-Servers -> Apache Website, and there, make sure "Default PHP execution mode" is set to FCGID.
-Eric