DSO handler. PHP files being served raw instead of executing

djsc00p

Registered
Feb 25, 2015
2
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
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.