website shows source code not content

Discussion in 'Apache' started by kondziq, Sep 4, 2010.

  1. #1
    Hi all,

    As in the subject - when i try to go to my website it shows source code and not the content.
    I did some testing and seems like when you type in 192.168.1.1 to the browser it will show code, but if you will give any html file after ip it will show content (i.e. 192.168.1.1/index.html or 192.168.1.1/test/test.htm will both work).
    I suspect I forgot to compile something basic to my apache, but no idea what it might be. Any hints?

    Thanks in advance,
    K.
     
    kondziq, Sep 4, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Is it showing the code for php files only? If so, you need to ensure that Apache is setup to use your installed PHP libraries, or, if you have not installed them, now would be a great time to do so :).
     
    RHS-Chris, Sep 4, 2010 IP
  3. kondziq

    kondziq Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There is nothing on the website but 1 simple link to another test webpage. No php.

    K.
     
    kondziq, Sep 4, 2010 IP
  4. kondziq

    kondziq Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok, seems to work fine now.
    The problem was that I had mod_mime not compiled.

    Thanks,
    K.
     
    kondziq, Sep 4, 2010 IP