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.

PHP source code is being displayed when website is loadded

Discussion in 'General Discussion' started by cybergod, Mar 20, 2013.

  1. cybergod

    cybergod Registered

    Joined:
    Mar 20, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    As the title says, when any php page is opened, instead of executing the php codes the server is sending php source code to the browser. Also in the filemanager, the php files are all having the icons of text files. We checked other accounts in the server, and they are all loading fine. Any idea what the issue is?

    regards..
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    I would check the .htaccess file(s) in that account and look for any incorrect AddType or AddHandler directives.
     
  3. cybergod

    cybergod Registered

    Joined:
    Mar 20, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    thanks very much... it worked. :)
     
Loading...

Share This Page