Bienvenido, Invitado
Nombre de Usuario Contraseña: Recordarme

Strange problem - Site crashing...
(1 viendo) (1) Invitado
  • Página:
  • 1

TEMA: Strange problem - Site crashing...

Strange problem - Site crashing... hace 1 año, 9 meses #15242

hello all,

i encounter a problem the last 3-4 days.
when there are many people in chat, i see many processes like this :
php-script [defunct] consuming lots of memory.
the load of the machine goes up to 50, 60, maybe more !!!

in error log of apache i see such messages:
[Wed May 05 01:01:30 2010] [error] [client 89.210.73.57] Premature end of script headers: php-script, referer: zbutsam.net/chat
[Wed May 05 01:01:31 2010] [error] [client 89.210.73.57] Premature end of script headers: php-script, referer: zbutsam.net/chat
[Wed May 05 01:09:21 2010] [error] [client 89.210.73.57] Premature end of script headers: php-script, referer: zbutsam.net/chat
[Wed May 05 01:09:22 2010] [error] [client 89.210.73.57] Premature end of script headers: php-script, referer: zbutsam.net/chat

of course, there is no way to access the machine, so i have a script running every hour which restarts apache and mysqld

is this a bug or something ?
  • Lewis
  • DESCONECTADO
  • Visitante
  • Temas: 6
  • Karma: 0

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15260

There is not a bug, but the com does a lot of queries to the db. You can increase the refresh time, in the admin config. With this change, the com will wait in each query

But you should contact with your hosting, maybe it's a cgi-bin error
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144
Última Edición: hace 1 año, 9 meses Por JoniJnm.

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15315

hello,

i changed all values to see whats happening...

my site is running on a dedicated server, and its the only one..
I use Centos and a Parallels Pro control panel (former Ensim Pro).
no other modifications are made..

thank you anyway...


george
  • Lewis
  • DESCONECTADO
  • Visitante
  • Temas: 6
  • Karma: 0

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15321

Dedicated server, oh?

Searching in google, I have found some changes that are done by users and the problem is solved:

1. Use php5, in the .htaccess add:
AddHandler application/x-httpd-php5 .php

2. Change the 777 permissions of the folders to 755, and 644 for files

3. More, here

Can I look your site?
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15347

when i add this at the bottom of my .htaccess file :
AddHandler application/x-httpd-php5 .php

i get this :
mark( 'afterLoad' ) : null; /** * CREATE THE APPLICATION * * NOTE : */ $mainframe =& JFactory::getApplication('site'); /** * INITIALISE THE APPLICATION * * NOTE : */ // set the language $mainframe->initialise(); JPluginHelper::importPlugin('system'); // trigger the onAfterInitialise events JDEBUG ? $_PROFILER->mark('afterInitialise') : null; $mainframe->triggerEvent('onAfterInitialise'); /** * ROUTE THE APPLICATION * * NOTE : */ $mainframe->route(); // authorization $Itemid = JRequest::getInt( 'Itemid'); $mainframe->authorize($Itemid); // trigger the onAfterRoute events JDEBUG ? $_PROFILER->mark('afterRoute') : null; $mainframe->triggerEvent('onAfterRoute'); /** * DISPATCH THE APPLICATION * * NOTE : */ $option = JRequest::getCmd('option'); $mainframe->dispatch($option); // trigger the onAfterDispatch events JDEBUG ? $_PROFILER->mark('afterDispatch') : null; $mainframe->triggerEvent('onAfterDispatch'); /** * RENDER THE APPLICATION * * NOTE : */ $mainframe->render(); // trigger the onAfterRender events JDEBUG ? $_PROFILER->mark('afterRender') : null; $mainframe->triggerEvent('onAfterRender'); /** * RETURN THE RESPONSE */ echo JResponse::toString($mainframe->getCfg('gzip'));
  • Lewis
  • DESCONECTADO
  • Visitante
  • Temas: 6
  • Karma: 0

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15387

So, your server can't run php5?

Ask to your server, you need php5
  • JoniJnm
  • DESCONECTADO
  • Administrador
  • Temas: 4167
  • Karma: 144

Re: Strange problem - Site crashing... hace 1 año, 9 meses #15394

my server is running PHP Version 5.1.6
  • Lewis
  • DESCONECTADO
  • Visitante
  • Temas: 6
  • Karma: 0
  • Página:
  • 1
Página generada en: 0.40 segundos