Not sure if these two problems are related but let me start with the title problem. Before you downvote for server related Q - if I put this on SE they will say it's wordpress specific due to the nature of errors.
I have recently gone through our server logs and found hundreds of lines of errors referencing.
End of script output before headers:usually for
admin-ajax.phpand probably more.
[Tue Feb 16 09:30:38.209846 2016] [core:error] [pid 30282] [client XX.XX.XXX.XXX:XXXXX] End of script output before headers: index.php, referer: https://www.website.co.uk/page/ [Tue Feb 16 09:45:58.230590 2016] [core:error] [pid 10470] [client XX.XXX.XXX.XXX:XXXXX] End of script output before headers: index.php, referer: https://www.website.co.uk/ [Tue Feb 16 10:11:42.186165 2016] [core:error] [pid 13733] [client XXX.X.XX.XX:XXXXX] End of script output before headers: index.php, referer: https://www.website.co.uk/custom-adminarea/adminpage/ [Tue Feb 16 11:03:21.719369 2016] [core:error] [pid 2863] [client XXX.XXX.X.XX:XXXXX] End of script output before headers: admin-ajax.php, referer: https://www.website.co.uk/subfolder/blogpage
Everyone who I have asked is unfamiliar with wordpress and how it handles the
index.php for respective pages - a few have said you need to 'optimize your index.php page' which makes no sense as most of the WP index files are blank to prevent browsing folders.
I develop any changes solely on my local computer and cannot find a single line referencing this problem in my local logs.
Secondly, I'm not sure if this is related but we had a burst of 2,000 website hits in an hour period. This somehow brought the server to it's knees... It's a dedicated server [stats below] and the dump sql size is only 150+ MB. Page load times went from 1 sec with a 55 query page to 60-90 seconds with page timeouts. If the two problems are related I need to fix it!
- Intel Xeon E3-1220 V2 (4 CPU)
- 16GB Memory
- SuperMicro USAS2LP-H8iR SMC2108 / LSI MegaRaid 9260-8i RAID Controller
- 2x 128GB Crucial SSD
- RAID 1
- CentOS 6 x64
- Proactive Monitoring and Alerting SLA
- 10 TB Bandwidth