The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web pages are downloading while accessing

Discussion in 'General Discussion' started by parithi, Dec 20, 2008.

  1. parithi

    parithi Registered

    Joined:
    Oct 10, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    While trying to access a link in my domain, the linked page downloads automatically..!
    Apache error logs shows nothing..!
    It seems the problem is with MIME...? Any ideas Guys...?
     
  2. hzJayJ

    hzJayJ Well-Known Member

    Joined:
    Nov 14, 2008
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    8
    I would suggest you to try recompling Apache.
     
  3. yolau

    yolau Active Member

    Joined:
    Sep 1, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Go to WHM --> Configure PHP and SuExec and make that you have a PHP handler set for your php version.
     
  4. sirotex

    sirotex Well-Known Member

    Joined:
    Jul 10, 2008
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    This only happens when PHP isnt enabled in your apache config.
     
  5. apscinsspl

    apscinsspl Well-Known Member

    Joined:
    Mar 15, 2008
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    This happens when php pages do not find php compiler.
    The good solution for this is recompiling apache.

    Cpanel Script:

    /script/easyapache

    There are other fixes for this but I would suggest easyapache as this will correct all the problems avoiding them to rise in future.
     
  6. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can also recompile Apache from WHM -> Software -> EasyApache (Apache update).
     
  7. sirotex

    sirotex Well-Known Member

    Joined:
    Jul 10, 2008
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    Telling him to recompile apache/php is not a solution, all he needs to do is tell apache how to handle .php files..
     
  8. jishi

    jishi Registered

    Joined:
    Mar 11, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    1 Please find your php installed path by
    php -i | grep php.ini
    and ensure php.ini file resides in this path
    2 Ensure following php directives are included in Apache.conf

    # Use for PHP 5.x:
    LoadModule php5_module modules/libphp5.so
    AddHandler php5-script php
    AddType text/html php


    # Use for PHP 4.x:
    LoadModule php4_module modules/libphp4.so
    AddHandler php-script php
    AddType text/html php

    Jishi V
     
  9. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Solution

    Is this problem server wide or you are facing this problem for single domain only? If you are facing this problem for single domain then you need to rename the .htaccess file because the handlers you are using in .htaccess is not allow to run with your Apache configuration Basically such problems are occur due to SuExec server.
     
Loading...

Share This Page