end of script output before headers php

I’ve set up a Centos 6 + CPanel 11 VPS, and everything is as it was out of the box. I’ve installed Phorum 5.2.20 in the public_html directory, but Phorum is causing an error 500. The error log reports:

[Mon Jul 27 11:21:57.770447 2015] [core:error] [pid 14342] [client x.x.x.x:42531] End of script output before headers: admin.php

The code works fine on my Debian LAMP server (and several other non-Centos/CPanel LAMP stacks I’ve used to test this), and WordPress and some other stuff runs fine on the CentOS machine.

I’ve tried other code too, and it works on my other servers, but doesn’t work on CentOS. Phorum is the only code that matters, so I made question focuses on that. I’m also reluctant to edit the core files of Phorum.

I’ve inherited the sysadmin role on a server that’s running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing «500 internal server error» from time to time. In my error.log file I see:

I think the server is running mod_fcgid system wide, since I have

with the following contents:

and I’ve found other questions, here and here, that are about the same error I get and that cite some mod_fcgid misconfiguration as the possible cause (wrong values in PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS variables). A reply in this forum also suggests a fcgid misconfiguration and seems to give more details about the problem (a possible bottleneck in number of accepted threads/connections), but it lacks a step-by-step explanation of what to do.

I’m no mod_fcgid expert. Can you help me understand where and how I should set the correct values for PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS variables?

Ошибка “Premature end of script headers”, которая появляется в логах apache – одна из самых распространенных ошибок и может быть настоящей головной болью. Ниже описано несколько способов, которые могут помочь вам устранить эту ошибку.
Иногда при запуске скриптов вы можете увидеть такую ошибку:
Premature end of script headers: /home/novall.net/public_html/index.php

Причины появления ошибки “Error: Premature End of Script Headers” и методы исправления

Эта ошибка говорит о том что сервер ожидал полный набор HTTP заголовков, но не получил его. Это может возникать по нескольким причинам:

Источник: computermaker.info

Понравилась статья? Поделиться с друзьями:
Ок! Компьютер
Добавить комментарий