Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Location
    Turkey
    Posts
    2

    Default application/x-httpd-php download

    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. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    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. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Turkey
    Posts
    2

    Default

    Quote Originally Posted by thewebhosting View Post
    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
    How i do this?

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    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!

Similar Threads & Tags
Similar threads

  1. need help AddHandler application/x-httpd-php .php .php4 .php3 .html
    By rustikat in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 03-03-2009, 06:01 PM
  2. FireFox and PHP "application/x-httpd-php" Error
    By RuneOwn in forum New User Questions
    Replies: 21
    Last Post: 08-11-2007, 07:16 AM
  3. Replies: 5
    Last Post: 01-05-2007, 12:41 PM
  4. PHP 5 and x-application-httpd issues
    By escalf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-09-2006, 11:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube