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.

application/x-httpd-php download

Discussion in 'General Discussion' started by vlkn448, Oct 18, 2009.

  1. vlkn448

    vlkn448 Registered

    Joined:
    Oct 18, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    I get an error when I want to enter my website
    To download the files you want: "application / x-httpd-php"
    Please help me
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you have an access to the Server then you will have add the below mentioned code in your Apache configuration file:

    AddType application/x-httpd-php .php .phtml .php3
    AddType application/x-httpd-php-source .phps
     
  3. vlkn448

    vlkn448 Registered

    Joined:
    Oct 18, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    How i do this?
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Thewebhosting is making the big assumption that you are running DSO (Apache Module) based PHP which has not been established as such yet.

    However he is partially correct in that the reason why your server is trying to send PHP files as downloads is because it does not recognize PHP which means either your PHP did not setup correctly or you failed to tell Cpanel which PHP module you wanted enabled.

    The first would have shown errors when running EasyApache ...

    The later is setup in "Configure PHP and SuExec" under the Apache configuration area in WHM on your server.

    You could manually add the directives as thewebhosting suggested but you would need to know what module DSO, CGI, or SUPHP is enabled before you could do this and if those were already enabled then the question would be why is it not working which brings us back to the menu option in WHM that I just told you to go to! ;)
     
Loading...

Share This Page