php not working on a subdomain


I just installed virtualmin 4.04 on a fresh Debian 7.
Trying to install Sugarcrm on both domain and a subdomain.
Everything did work fine for the domain site (
Doing exactly the same installation on subdomain (uploaded sugarcrm files on public_html directory) does not have the same effect :
When i open the site ( the php source is displayed not executed.

I saw a few topics on the same subject but no solution…

php -v shows PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12 2013 08:42:07)
i renamed .htaccess, no effect…

Thanks for your help


For that Sub-Server, take a look in Server Configuration -> Website Options, and make sure that it’s set to CGI or FCGID, and not mod_php.

There seems to be an issue in some cases where that can be default to mod_php, which can cause some unexpected behavior.


It works fine with Fast CGI
Thanks !