Skip to main content

"Premature end of script headers" (suPHP after Upgrade)

Comments

8 comments

  • Owl
    Looks like I spoke too soon... dso worked for the front page of one of my sites. And throws errors on the rest. Also, CGI throws 500 errors as well... Might be something deeper.
    0
  • Owl
    For others who are seeing this, the (hopefully temporary) solution I've gotten to work is disable suExec, switch your handler to fastCgi, and then go through and update the permissions on your files to allow your apache user (usually "nobody") the same permissions as the regular user you were running as.
    0
  • cPanelMichael
    Hello :) Were there any additional messages in /usr/local/apache/logs/error_log when the website failed to load? While your solution may have worked, it's generally advised to determine the cause of the problem rather than disabling suexec and modifying file ownership. Thank you.
    0
  • Owl
    Absolutely agree that I'd love to actually fix the problem. There are no other logs generated in the error_log beside "Premature end of script headers: index.php".
    0
  • madmanmachines
    Hi, With the suPHP handler, have you ensured proper permissions(
    0
  • cPanelMichael
    You can also review /usr/local/apache/logs/suphp_log to see if there's any additional information about suPHP in this log. Thank you.
    0
  • Owl
    @madmanmachines -- Ran that script. Same error occurring. Also, it won't be a firewall issue since everything was running just fine previously to updating apache. @cPanelMichael -- There's nothing in that log. Any other ideas?
    0
  • cPanelMichael
    It's difficult to determine the exact reason if you are no longer using the same environment. Feel free to let us know if the issue persists after switching suExec to "On". Thank you.
    0

Please sign in to leave a comment.