php not working on a subdomain

3 posts / 0 new
Last post
#1 Fri, 01/31/2014 - 09:48
MAJiCWoofy

php not working on a subdomain

Hello,

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 (proximinformatique.com). 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 (http://pxcrm.proximinformatique.com) 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

Fri, 01/31/2014 - 10:22
andreychek

Howdy,

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.

-Eric

Fri, 01/31/2014 - 10:48
MAJiCWoofy

It works fine with Fast CGI Thanks !

Topic locked