Find the answer to your Linux question:
Results 1 to 2 of 2
hi I am using apache and php4. When i try to open my home page in the browser, it prompts me to download some PHTML file instead of displaying the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    26

    Question apache problem


    hi

    I am using apache and php4.

    When i try to open my home page in the browser, it prompts me to download some PHTML file instead of displaying the home page.

    Pls tell me how to get rid of this problem.

  2. #2
    Linux User
    Join Date
    Jan 2006
    Posts
    414
    What distro are you using?

    Try renaming your homepage from index.phtml to index.php

    If that works then you most likely just need to add a line to your httpd.conf along the lines of;
    Code:
    AddHandler application/x-httpd-php .phtml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •