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.

DSO handler. PHP files being served raw instead of executing

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

  1. djsc00p

    djsc00p Registered

    Joined:
    Feb 25, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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!
    Tim
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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:

    Code:
    /scripts/rebuildhttpdconf
    Let us know if the issue persists.

    Thank you.
     
Loading...

Share This Page