index.php Downloads the file instead of showing it.

Discussion in 'Apache' started by marklodge, Aug 15, 2010.

  1. #1
    i am running debian lenny
    running apache (latest)
    i am trying to make a webserver.

    i put the index.html file in my www folder. it shows up when i go to my site (localhost)
    i put an index.php file in my www folder and when i try to go to my site it Downloads the index.php file instead of showing it.
    please help
     
    marklodge, Aug 15, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    RHS-Chris, Aug 15, 2010 IP
  3. marklodge

    marklodge Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i reinstalled Apache mysql and php5 as the guide showed
    now when i go to localhost it asks me to download:
    application/x-httpd-php
     
    marklodge, Aug 16, 2010 IP
  4. MirVB

    MirVB Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    MirVB, Aug 16, 2010 IP
  5. marklodge

    marklodge Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i did restart apache (i run webmin so i stop and start apache server from there)
     
    marklodge, Aug 16, 2010 IP
  6. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hmm, Can you paste your .htaccess?
     
    mellow-h, Aug 19, 2010 IP
  7. rathin

    rathin Peon

    Messages:
    1,377
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    if you still haveing the issue let me know
     
    rathin, Aug 21, 2010 IP