PHP Pages Only Ask to Save the File

Discussion in 'Apache' started by blksith0, Nov 26, 2010.

  1. #1
    Hey, I followed this tutorial here:
    http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml
    and I've done it twice now and checked everything, but PHP simply wont work and only asks to save the PHP file when using Apache.
    So, what else is there to do? Am I missing something?

    Thanks.
     
    blksith0, Nov 26, 2010 IP
  2. blksith0

    blksith0 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I found it, it was something in my .htaccess file. Its all working good now.
     
    blksith0, Nov 30, 2010 IP
  3. srvwebs

    srvwebs Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    rename .htaccess file and try it and share .htaccess so that anyone can guide you with your error
     
    srvwebs, Dec 13, 2010 IP
  4. JREAM

    JREAM Member

    Messages:
    160
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #4
    Please provide your solution next time to help people that might view the thread!
    Here is the answer when PHP is downloading and not parsing:

    in your .htaccess file add (Top or bottom, does not matter)
    AddType application/x-httpd-php .php


    Note: This is used with mod_mime (It is most likely on, if not uncomment it in your apache conf file)
     
    JREAM, Dec 13, 2010 IP
  5. blksith0

    blksith0 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry about that, will do next time!
     
    blksith0, Dec 13, 2010 IP
  6. gopkris2000

    gopkris2000 Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    In future, You should verify how php was enabled with apache (/usr/local/apache/conf/php.conf) and check AddType entries with your .htaccess.
     
    gopkris2000, Dec 15, 2010 IP