Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DSO handler. PHP files being served raw instead of executing

Discussion in 'General Discussion' started by djsc00p, Feb 25, 2015.

  1. djsc00p

    djsc00p Registered

    Feb 25, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    Hello All,

    We used to run this as DSO and we now have to go back to it.
    We tried using suPHP but it isn't working very well with our current setup.

    One problem that I'm having is that when I switch to DSO handler in WHM all PHP files are being served as download files instead of being executed by PHP. Do you know why this is and how I can fix it?

    We have tampered a bit with httpd.conf but not a lot. The following line is already in httpd.conf:

    AddHandler application/x-httpd-php5 .php

    Any thoughts?

    Thanks very much in advance!
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You actually shouldn't add the "AddHandler application/x-httpd-php5 .php" line to the Apache configuration file. Please remove the entry using the same method you used to add it, and rebuild the Apache configuration file via:

    Let us know if the issue persists.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice