Jump to:

556 Posts in 3295 Topics by 243 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » "Premature end of script headers: main.php" after server update

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 413 Views
  • purplespider
    Avatar
    Community Member
    81 Posts

    "Premature end of script headers: main.php" after server update Link to this post

    Earlier today I upgraded my cPanel server using EasyApache from PHP 5.3 to 5.4, I also included Xcache, and I think mod_pagespeed was also added.

    After the upgrade all my SilverStripe 3.1 sites were just returning 500 Server Errors, which I eventually tracked down in the logs as:

    Premature end of script headers: main.php

    Doing a dev/build on each site seemed to fix the issue, but it was a real pain to have to enable dev mode on each site config, and then dev/build (I have over 50 SilverStripe sites on my server).

    Any idea what caused this? My guess is some kind of database issue. Something to do with InnoDB? Which I don't know much about.

    I wasn't able to work out exactly why a dev/build fixed the sites, but I'd like to understand in order to avoid the issue in future.

    I've still got a few (unused) sites that I haven't run dev/build on yet, so happy to have a play if you have any suggestions to work out exactly what caused this.

    Thanks
    James

    413 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.