Find the answer to your Linux question:
Results 1 to 4 of 4
When I browse to a .php file on my apache server, my browser tries to open/save the file, instead of viewing it in the browser. I think this is my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110

    Browsing to .php files on my apache server tries to download them


    When I browse to a .php file on my apache server, my browser tries to open/save the file, instead of viewing it in the browser. I think this is my apache/php settings.

    The page is:
    http://mark.arkaoss.com/testindex.php

    The rest of the site seems to work. Where can I check to fix this?
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    sounds like either you do not have php proberly installed or it is not called correctly through your httpd.conf?
    Operating System: GNU Emacs

  3. #3
    Linux Newbie
    Join Date
    Dec 2003
    Location
    Netherlands
    Posts
    193
    You have to setup the permissions of your folder.

    If you don't did that, you only can download the files!
    Computers Are Like Air Conditioners... They\'re both useless with Windows open!

  4. #4
    Linux Newbie
    Join Date
    Jul 2005
    Location
    ~/home
    Posts
    105
    make sure that you editted your httpd.conf,
    look for the following lines:
    Code:
        # And for PHP 4.x, use:
        #
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    Help me getting a Opera licence
    Beginning with debian? -> read THIS!

Posting Permissions

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