[horde] horde 5 to 6 login URL still H5 path

Brent impuser at bitrealm.com
Tue Feb 28 22:11:45 UTC 2023


  Quoting Frank Lienhard <frank at mclien.de>:

> On 2/27/23 15:53, Brent wrote:
>>  Quoting Frank Lienhard <frank at mclien.de>:
>>
>>> On 2/26/23 13:14, Frank Lienhard wrote:
>>>> Hi,
>>>>
>>>> I'm doing a reinstall of my horde. since this is an shared  
>>>> hosting, my installation path is ~/horde, which lead to this URL  
>>>> with H5 was:
>>>> my.tld/horde[1][1]
>>>>
>>>> which gave me the login screen.
>>>>
>>>> I followed these howtos:
>>>> https://github.com/horde/horde-deployment#readme (for general  
>>>> composer install)
>>>> https://wiki.horde.org/Doc/Dev/H6/Installation/UpgradeH5Release?version=4  
>>>> (for the DB migration)
>>>>
>>>> I did edit the composer.json to have all my previous apps.
>>>> I copied all conf.php file.
>>>> Then I did run the
>>>> "./vendor/bin/horde-db-migrate up"
>>>> I get this info several times:
>>>> [  INFO  ] Migrating DB up.
>>>> [26-Feb-2023 12:42:29 Europe/Berlin] PHP Deprecated:  Creation of  
>>>> dynamic property ErrorException::$logged is deprecated in  
>>>> /var/www/virtual/iibi/html/horde/vendor/horde/core/lib/Horde/Core/Log/Object.php on line  
>>>> 231
>>>> As this seems to be info only, I then did:
>>>> "composer horde-reconfigure"
>>>>
>>>> As I understand the new login URL should be:
>>>> my.tld/horde/web/login.php[2][2]
>>>>
>>>> I do get a login page (rudimentary), but the login attempt  
>>>> always, jumps to this URL:
>>>> my.tld/horde/login.php[3][3] which ends with:
>>>> "The requested URL was not found on this server."
>>>>
>>>> Which obviously is right.
>>>> I guess I missed some obvious config file, but don't know which....
>>>>
>>>> Thankful for any hints.
>>>
>>> I just learnt that I missed the part where Documentroot must be  
>>> the web/ subdir.
>>> I fixed that and logged in to the admin interface:
>>> my.tld/horde/admin/config[4][4]
>>> I was able to log in and updated all configs that were marked outdated.
>>>
>>> However I get an internal server Error every time I want to use  
>>> one of the applications (like calendar, addressbook, tasks etc).
>>>
>>> here is my composer.json in case I missed some app to install.
>>> ------------------
>>> {
>>>    "name": "horde/bundle",
>>>    "description": "A base project for a horde installation",
>>>    "type": "project",
>>>    "repositories": {
>>>        "0": {
>>>            "url": "https://horde-satis.maintaina.com",
>>>            "type": "composer"
>>>        }
>>>    },
>>>    "require": {
>>>        "composer-plugin-api": "^2.0",
>>>        "horde/horde-installer-plugin": "^2.5.1 ||  
>>> dev-FRAMEWORK_6_0 || dev-master",
>>>        "horde/horde": "^6 || dev-FRAMEWORK_6_0",
>>>        "horde/routes": "^3 || dev-FRAMEWORK_6_0",
>>>        "horde/hordectl": "^1 || dev-FRAMEWORK_6_0 || dev-master",
>>>        "pear/console_color2": "^0.1.2",
>>>        "pear/console_table": "^1.3",
>>>        "horde/content": "dev-FRAMEWORK_6_0",
>>>        "horde/gollem": "dev-FRAMEWORK_6_0",
>>>        "horde/kronolith": "dev-FRAMEWORK_6_0",
>>>        "horde/mnemo": "dev-FRAMEWORK_6_0",
>>>        "horde/nag": "dev-FRAMEWORK_6_0",
>>>        "horde/passwd": "dev-FRAMEWORK_6_0",
>>>        "horde/turba": "dev-FRAMEWORK_6_0"
>>>    },
>>>    "require-dev": {
>>>        "horde/test": "^3 || dev-FRAMEWORK_6_0 || dev-master"
>>>    },
>>>    "license": "GPL-3.0-only",
>>>    "authors": [
>>>        {
>>>            "name": "Ralf Lang",
>>>            "email": "lang at b1-systems.de"
>>>        }
>>>    ],
>>>    "minimum-stability": "dev",
>>>    "prefer-stable": true,
>>>    "extra": {
>>>        "installer-types": [
>>>            "horde-library",
>>>            "horde-application"
>>>        ]
>>>    },
>>>    "config": {
>>>        "allow-plugins": {
>>>            "horde/horde-installer-plugin": true
>>>        }
>>>    }
>>> }
>>
>> You can turn on logging if you're able to get to the config page.  
>> It's under "Horde->Logging". Crank up logging and see what's  
>> happening.
>
> set from info to debug
> but... I can't find any logfiles
>
> On
>> the config page, I assume your db schemas are all shown as up to date?
>
> All show "SQL DB schema is ready."
>
>> Enable the "test.php" page and see if that shows anything  
>> interesting. It's in the conf.php in  
>> <install-dir>/web/horde/config/conf.php.
>
> like this?: $conf['testdisable'] = false;
> Nothing troublesome.
>
> My hoster is uberspace and for my case there is this in the manual:
> https://manual.uberspace.de/en/web-documentroot/
>
> So as I understand it, I have to add the "RewriteBase /" in the  
> .htaccess file in the /web dir.
> But I was unsuccessful so far with my attempts in web/.htaccess  
> which I have defined as DocumentRoot for a subdomain. The sub-domain  
> part seems to work, as I reach horde by adding the index.php in the  
> uRL.
>  

Ensure the place you're trying to log is writable by the web user.  
Avoid the /tmp directory as it has special permissions on it. I create  
a "/logs" directory and have it wriable by the webuser and just log  
there with the "file" option.

The .htaccess stuff should already be there. I can't quite tell from  
your post, but are you running it as a subdir (yourdomain.com/horde)  
or as the main site (webmail.yourdomain.com)? I've not tried running  
as a subdir, but I can set it up and see if anything different is  
needed for the urls to be created properly. It should work..I've just  
not done it personally.

brent



Links:
------
[1] http://my.tld/horde
[2] http://my.tld/horde/web/login.php
[3] http://my.tld/horde/login.php
[4] http://my.tld/horde/admin/config


More information about the horde mailing list