Premature end of script headers: index.php

Добрый день.
Ребята помогите пожалуйста решить такую проблему:
Сайт работал пол года на одном хостинге (godaddy) нормально,а вот уже 5 день он жутко тормозит.Посетителей больше не стало,никаких изменений я в коде не делал плагинов установлено минимум.Ихний сапорт (они отвечают раз в 24 часа)) посоветовал мне поменять хостинг план на более мощьный.Я сменил его на другой план который даёт в два раза больше подключений чем было у меня раньше,но ничего не изменилось
До этого стоял wp-super cache взял и сменил его на hyper cache.Сайт работает толька за счёт кэша,если удалить кэш то страницы открываются за 50 – 60 секунд,или вообше выдаёт ошибку 503 или 500.В логах вот такие ошибки появляются :

[Thu Nov 04 05:16:31 2010] [emerg] [client 151.53.75.174] (22)Invalid argument: mod_fcgid: can't lock process table in pid 11967
[Thu Nov 04 06:05:21 2010] [warn] [client 212.220.85.82] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:05:21 2010] [error] [client 212.220.85.82] Premature end of script headers: index.php
[Thu Nov 04 06:06:20 2010] [warn] [client 80.236.231.232] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:06:20 2010] [error] [client 80.236.231.232] Premature end of script headers: index.php
[Thu Nov 04 06:06:34 2010] [warn] [client 195.60.174.72] mod_fcgid: can't apply process slot for /var/chroot/home/content/39/6223039/html/index.php
[Thu Nov 04 06:28:03 2010] [warn] [client 84.42.76.241] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:28:03 2010] [error] [client 84.42.76.241] Premature end of script headers: index.php
[Thu Nov 04 06:28:59 2010] [warn] [client 94.179.58.196] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:28:59 2010] [error] [client 94.179.58.196] Premature end of script headers: index.php
[Thu Nov 04 06:35:20 2010] [warn] [client 93.183.221.96] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:35:20 2010] [error] [client 93.183.221.96] Premature end of script headers: index.php
[Thu Nov 04 06:35:36 2010] [warn] [client 109.108.234.215] mod_fcgid: can't apply process slot for /var/chroot/home/content/39/6223039/html/index.php
[Thu Nov 04 06:35:38 2010] [warn] [client 178.93.126.250] mod_fcgid: can't apply process slot for /var/chroot/home/content/39/6223039/html/index.php
[Thu Nov 04 06:35:40 2010] [warn] [client 91.215.18.206] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:35:40 2010] [error] [client 91.215.18.206] Premature end of script headers: index.php
[Thu Nov 04 06:35:43 2010] [warn] [client 93.183.221.96] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:35:43 2010] [error] [client 93.183.221.96] Premature end of script headers: index.php
[Thu Nov 04 06:35:55 2010] [warn] [client 188.124.111.246] mod_fcgid: read data timeout in 120 seconds
[Thu Nov 04 06:35:55 2010] [error] [client 188.124.111.246] Premature end of script headers: index.php

Hyper cache не кэширует страницы для зарегестрированых то есть для меня ,и когда я залогинен на сайте то страницы открываются по 1 минуте ,в админке чтобы добавить или отредактировать запись нажимаю добавить и иду курить о когда возврaщаюсь в 60 %из случаев вижу 500 server internal error .В другом браузере где я не залогинен сайт более менее работает из кэша.
Сайт так работает вне зависимости сколько посетителей онлайн на сайте ,он тормозит даже когда на сайте 50 или меньше.

Спасибо.

Только что мне ответил сапорт про эти логи:

We have reviewed your account and could not find any issues with the hosting account or server. The type of error you are experiencing is most likely caused by coding or scripting. Unfortunately, because we do not provide coding support, we are unable to determine what specifically in your code may be causing the error.

You may wish to review your code to determine if there are any issues, because it appears from the error log that the scripts for the site are timing out, and that is the most likely cause of the error. Additionally, you may want to increase the max execution time for your scripts in your php5.ini file. We also recommend consulting both the vendor's online documentation, as well as the large number of online forums dedicated to coding and scripting.

If you determine there is no issue with the code itself and believe the issue is server related, please reply with specific evidence of this and we will investigate the matter further.

Короче понятно что ничего не понятно :rolleyes:.

А что им ещё сказать.
"Мы только саппорт по серверу бла-бла-бла.
Читайте форумы и обращайтесь к своим программистам."

Прислали ещё одно сообщение,у меня волосы дыбом .
Никак не могу понять как это сделать.

Thank you for contacting Online Support.  

I would be happy to assist you with your issue. You may want to consider disabling FastCGI if you are not currently using it for your hosting account. By default, PHP files use PHP 5, with PHP4 files using PHP 4, and PHP5 files using PHP 5. The .htaccess file, located in your website's root directory, can be used to change these default settings. The following entries in a directory's .htaccess file designate PHP files to run under PHP 5 and PHP4 files to run under PHP 4.
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

Grid Hosting accounts should use the following entries:

AddHandler x-httpd-php5-cgi .php
AddHandler x-httpd-php-cgi .php4

To use PHP 5.3, use the following entry:

AddHandler x-httpd-php5-3 .php

Changes made to an existing .htaccess file will be seen immediately. When creating new .htaccess files or deleting existing .htaccess files, you might not see changes for up to an hour.

Они, как я понял (к сожалению, читаю я по-английски, как говорится, со словарем :/ ), пишут, что у вас конфликт между PHP, используемым вашим сайтом, и PHP, используемым сервером, и рекомендуют решить эту проблему, сделав вручную соответствующие записи в файле .htaccess в папке вашего сайта на сервере.

Они, как я понял (к сожалению, читаю я  по-английски, как говорится, со словарем :/ ), пишут, что у вас конфликт между PHP, используемым вашим сайтом, и PHP, используемым сервером, и рекомендуют решить эту проблему, сделав вручную соответствующие записи в файле .htaccess в папке вашего сайта на сервере.

А как прописать в htaccess, я пробовал добавить эти строчки

AddHandler x-httpd-php5-cgi .php
AddHandler x-httpd-php-cgi .php4

и никаких изменений.Может кроме этих строк ещё что-то надо прописать?

Anonymous
Отправить
Ответ на: