[horde] trean: 404 when deleting or saving after edit

Andy Dorman adorman at ironicdesign.com
Tue Dec 16 19:15:40 UTC 2014


On 12/16/2014 12:26 PM, Andy Dorman wrote:
> On 12/16/2014 12:08 PM, Erling Preben Hansen wrote:
>>   Citat af Andy Dorman <adorman at ironicdesign.com>:
>>
>>> On 12/14/2014 03:14 AM, Philip Frei wrote:
>>>> Am Wed, 10 Dec 2014 12:04:13 +0100
>>>> schrieb Jan Niggemann <jn at hz6.de>:
>>>>
>>>>> Creating bookmarks works fine, but saving after editing reproduceably
>>>>> produces a 404 with http://domain.de/horde/trean/b/save not being
>>>>> found, the same goes for deleting
>>>>
>>>> What's your OS? Do you use php-fpm?
>>>>
>>>> I have the same problem as described on a Debian system with php-fpm
>>>> enabled. Without php-fpm everything works like expected. But I don't
>>>> have a clue how to configure it right.
>>>>
>>>> greetings Philip.
>>>
>>> We are testing Debian, Apache 2.4 with php-fpm, Horde 5.2.1 and trean
>>> 1.1.1  and we are having the same problem...I actually thought I had
>>> fixed this last summer, but apparently not.
>>>
>>> I am positive the issue is in our Apache 2.4 config, but I have been
>>> researching and experimenting for a couple of hours now and all I have
>>> done so far is cause Apache to crash a couple of times.
>>>
>>> My current Apache 2.4 Horde directives look like this:
>>>
>>> Alias /horde /usr/share/horde
>>>
>>> <Directory /usr/share/horde>
>>> AllowOverride All
>>> Require all granted
>>> <IfModule mod_rewrite.c>
>>>    RewriteEngine On
>>>    RewriteBase /horde
>>>    RewriteCond %{REQUEST_FILENAME} !-d
>>>    RewriteCond %{REQUEST_FILENAME} !-f
>>>    RewriteRule ^(.*)$ index.php/$1[1] [QSA,L]
>>> </IfModule>
>>> </Directory>
>>>
>>> <Directory /usr/share/horde/config>
>>>     Deny from all
>>> </Directory>
>>>
>>> <Directory /usr/share/horde/scripts>
>>>     Deny from all
>>> </Directory>
>>>
>>> <Directory /usr/share/horde/locale>
>>>     Deny from all
>>> </Directory>
>>>
>>> <Directory /usr/share/horde/lib>
>>>     Deny from all
>>> </Directory>
>>>
>>> <Directory /usr/share/horde/templates>
>>>     Deny from all
>>> </Directory>
>>>
>>> I even removed the /horde/.htaccess file to make sure the Apache 2.2
>>> directives in it were not causing a problem.
>>>
>>> Anyone see what I have wrong above or am missing?
>>>
>>> Thanks for any ideas or thoughts.
>>>
>>> --
>>> Andy Dorman
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/To unsubscribe, mail:
>>> horde-unsubscribe at lists.horde.org
>>
>> hey again
>> just checked my test server
>>
>> this rewrite:
>>
>> <IfModule mod_rewrite.c>
>>     RewriteEngine On
>>     RewriteBase /horde
>>     RewriteCond %{REQUEST_FILENAME} !-d
>>     RewriteCond %{REQUEST_FILENAME} !-f
>>     RewriteRule ^(.*)$ index.php/$1 [QSA,L]
>> </IfModule>
>>
>> is only needed in
>>
>> horde/content  and in horde/rpc
>>
>> /erling
>>
>> Links:
>> ------
>> [1] http://index.php/$1
>
> Thanks.  That makes sense.  I will try it.
>

Tried it.  It did not seem to change anything.  It still makes sense 
though.  So I am going to leave it at

RewriteRule ^(.*)$ rampage.php/$1 [QSA,L]

The crazy thing is, I still have the debugging log change in rampage.php 
and it did not write anything, so even with the re-write explicitly set 
to call rampage.php, it did not.

Si it still seems to me that my Apache config is seriously broken.  I 
need to think about this some more.

-- 
Andy Dorman



More information about the horde mailing list