<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>error 500 in imp/redirect on failed login</title> 
  <pubDate>Fri, 10 Apr 2026 13:09:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6959</link> 
  <atom:link rel="self" type="application/rss+xml" title="error 500 in imp/redirect on failed login" href="https://bugs.horde.org/ticket/6959/rss" /> 
  <description>error 500 in imp/redirect on failed login</description> 
 
   
   
  <item> 
   <title>I know this should be a problem with php or apache2, but I d</title> 
   <description>I know this should be a problem with php or apache2, but I don&#039;t know what to do anymore. I&#039;m using Horde Groupware Webmail Edition on Apache 2.2 with PHP5 (fast-cgi). Auth works over IMP (Cyrus 2.2 IMAP). All works fine, I can login, I can read mails, can create users and so on. I can do nearly everything in Horde when logged in. The problem is, when I log in with wrong username or password. The application works for some seconds and I get an error 500 and Apache error log says: 



[Fri Jun 20 08:41:41 2008] [error] [client 85.232.9.189] Premature end of script headers: redirect.php, referer: https://xxx/imp/redirect.php

[Fri Jun 20 08:41:42 2008] [notice] mod_fcgid: process 4226 going graceful shutdown, sending SIGTERM

[Fri Jun 20 08:41:48 2008] [warn] mod_fcgid: process 4226 graceful shutdown timeouted, sending SIGKILL

[Fri Jun 20 08:41:54 2008] [notice] mod_fcgid: process /var/www/horde/imp/login.php(4226) exit(communication error), get stop signal 9



No other log provides more information. What can I do?

When calling redirect.php direct in browser, I get redirected to login page. What&#039;s wrong? I don&#039;t believe in wrong configuration of the webserver (because all is fine when I&#039;m correctly logged in).</description> 
   <pubDate>Fri, 20 Jun 2008 07:06:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46682</link> 
  </item> 
   
  <item> 
   <title>Forgot to say, that apache works with worker-model on Debian</title> 
   <description>Forgot to say, that apache works with worker-model on Debian Etch. Perhaps, there is a wrong newline in redirect.php?</description> 
   <pubDate>Fri, 20 Jun 2008 07:42:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46683</link> 
  </item> 
   
  <item> 
   <title>Please see the FAQ.</title> 
   <description>Please see the FAQ.</description> 
   <pubDate>Fri, 20 Jun 2008 08:07:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46684</link> 
  </item> 
   
  <item> 
   <title>Found nothing in FAQ about &quot;premature end....&quot;, &quot;error 500&quot;.</title> 
   <description>Found nothing in FAQ about &quot;premature end....&quot;, &quot;error 500&quot;...Troubleshoot for Horde and IMP also contain no hint for my problem!? Give a hint...



&gt; Please see the FAQ.

</description> 
   <pubDate>Fri, 20 Jun 2008 08:37:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46686</link> 
  </item> 
   
  <item> 
   <title>Hum, with php5-cli the error doesn&#039;t occur, only with php5-f</title> 
   <description>Hum, with php5-cli the error doesn&#039;t occur, only with php5-fcgi (I can reproduce this error). That&#039;s not what I want, because apache-worker doesn&#039;t work with php5-cli (only the prefork-model), but I still can&#039;t understand why I can do anything when logged in correctly and the script fails only on wrong login!?</description> 
   <pubDate>Fri, 20 Jun 2008 16:00:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46703</link> 
  </item> 
   
  <item> 
   <title>SOLVED:

After trying for hours and reinstalling the whole s</title> 
   <description>SOLVED:

After trying for hours and reinstalling the whole system and experiencing with apache/php  I&#039;ve installed apache2-mod-worker with php5-cgi and mod_fastcgi. By default Debian Etch installs mod_fcgid (which is newer). By default mod_fastcgi&#039;s option idle-timeout is set to 30 seconds and with this value IMP crashs on wrong login. When set this option to 60 seconds - it works, looks like a wonder after hours of trouble :)

So I reinstalled mod_fcgid and removed mod_fastcgi and set option IPCCommTimeout in mod_fcgid.conf to 60 seconds (by default 20 seconds) and so I don&#039;t get the error anymore. To be sure, I&#039;ll go on for a while with testing ;)</description> 
   <pubDate>Sat, 21 Jun 2008 16:35:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6959#t46712</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
