Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    27

    Default Index.php wants to download instead of...

    index.php wants to download instead of showing as a webpage.

    Any ideas?
    Chris Creighton

    "Do, or do not. There is no 'try'." - Yoda

  2. #2
    Registered User
    Join Date
    Nov 2003
    Posts
    1

    Default

    ccreighton - I had the same problem. thaphantom's suggestion fixed it for me.

  3. #3
    Member
    Join Date
    May 2004
    Posts
    26

    Default

    I'm currently having a similar problem. PHP files download rather than load normally, and at the domain name I just get the message "There is no website configured at this address." Have recompiled Apache through whm several times, getting an error message saying that php can't find "//bin" (apparently a config error, although I don't know where the config would be...). I then updated cpanel, and again compiled apache through it with the same results. Using easyapache as described above has no effect. Any ideas, anyone...?

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    14

    Default

    GOt one MIME types check and make sure the .php extension is set right

    http://httpd.apache.org/docs/mod/mod_mime.html <-- Aapche docs


    Under the <module mod_mime.c>

    Make sure these are in your httpd.conf file
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .phtml

  5. #5
    Member
    Join Date
    May 2004
    Posts
    26

    Default

    The nice support people at my host managed to solve my problem - basically the line "NameVirtualHost sharedip" was missing from my httpd... No ideas why cpanel decided to drop that line from the config file... Wierd.

  6. #6
    Member
    Join Date
    Oct 2004
    Posts
    106

    Question index.php tries to download

    Quote Originally Posted by fullroast
    ccreighton - I had the same problem. thaphantom's suggestion fixed it for me.
    What was The Phantom's Suggestion?

  7. #7
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Lightbulb

    Are you sure that the apache is started with the php module enabled in the httpd.conf?
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    106

    Wink

    I'm positive it wasn't. PHP is setup as a CGI on the server in question.

Similar Threads & Tags
Similar threads

  1. Index.php not recognized as index file in addon domains
    By hubrik in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-16-2008, 10:57 AM
  2. want to switch hom page from index.html to index.php
    By websoftbiz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-12-2008, 07:14 PM
  3. Replies: 2
    Last Post: 06-01-2008, 10:43 AM
  4. Scripts from whm try to download index.php
    By felosi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-22-2007, 02:42 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube