The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No PHP in Subdomains / Addon-Domains

Discussion in 'General Discussion' started by yves.menge, Aug 13, 2009.

  1. yves.menge

    yves.menge Registered

    Joined:
    Nov 4, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi out there!

    My server is running CentOS 5.3 with Apache 2.2 and PHP 5.2.10 with suPHP on and Suexec on!

    My problem is, PHP is working for each "main domain" like www.blabla.com etc.. but when i add a subdomain or a addon-domain, in this new domain PHP is not working (z.b. something.blabla.com/phpinfo.php) when i then open this page, a file download dialog appears. On myself it makes the view that something with the php handler is not correctly configured for sub/addon-domains.

    does anyone else have this problem or even better has a solution?

    kindest regards
    yves
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sounds like an issue of a conflicting .htaccess file. Be sure to check your paths for .htaccess files that could be causing PHP to behave in this way.
     
Loading...

Share This Page