PHP works only in Document root

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jayaprakash Rudraraju

    #1

    PHP works only in Document root


    Hi,

    All php files in document root work fine. While php
    files in sub-directories of document root shows the
    php source like a text file.

    I have looked for help and also FAQ. Did I miss anything
    during the installation. I have installed both apache and
    php on Linux many times before actually figuring out that
    all my php files generate html only in document root.

    Thanks
    Prakash.

    --
    Three things are certain:
    Death, taxes, and lost data.
    Guess which has occurred.

    -- David Dixon
  • Andy Jeffries

    #2
    Re: PHP works only in Document root

    On Tue, 01 Jul 2003 18:30:45 -0700, Jayaprakash Rudraraju wrote:[color=blue]
    > All php files in document root work fine. While php
    > files in sub-directories of document root shows the
    > php source like a text file.
    >
    > I have looked for help and also FAQ. Did I miss anything
    > during the installation. I have installed both apache and
    > php on Linux many times before actually figuring out that
    > all my php files generate html only in document root.[/color]

    Sounds like you have declared the line:

    AddType application/x-httpd-php .php

    Within a <Directory></Directory> block.

    Without seeing your config files it's hard to tell...

    Cheers,


    Andy

    Comment

    Working...