[horde] initial conf file and DB with composer install?

Horst Simon horst.simon2 at icloud.com
Mon Mar 6 12:54:31 UTC 2023



> On 6 Mar 2023, at 22:55, Frank Lienhard <frank at mclien.de> wrote:
> 
> 
> 
> On 3/6/23 04:41, Horst Simon wrote:
>>> On 6 Mar 2023, at 02:24, Brent <impuser at bitrealm.com> wrote:
>>> 
>>> Quoting Frank Lienhard <frank at mclien.de>:
>>> 
>>>> On 3/5/23 15:46, Peter Øgaard Meyland wrote:
>>>>>  Citat af Frank Lienhard <frank at mclien.de>:
>>>>> 
>>>>>> On 3/4/23 10:56, Frank Lienhard wrote:
>>>>>>> On 3/4/23 09:23, Admin Beckspaced wrote:
>>>>>>>> Am 03.03.2023 um 21:10 schrieb Frank Lienhard:
>>>>>>>>>> Maybe I'm just to blind or missing basic knowledge, but there a 2 points I don't get.
>>>>>>>>>> 
>>>>>>>>>> If I do a new composer install, I do not have a var/config/horde/conf.php
>>>>>>>>>> nor a DB.
>>>>>>>>>> 
>>>>>>>>>> So how do I generate those?
>>>>>>>>>> At least I can't find any in the git description:
>>>>>>>>>> https://github.com/horde/horde-deployment
>>>>>>>>> 
>>>>>>>>> have a look at the horde install docs
>>>>>>>>> 
>>>>>>>>> https://www.horde.org/apps/horde/docs/INSTALL#configuring-horde
>>>>>>>>> 
>>>>>>>>> 4. Creating databases
>>>>>>>>> 
>>>>>>>>> Databases and conf.php will get created via the horde administartion -> configuration
>>>>>>>>> 
>>>>>>>>> hope that helps
>>>>>>>>> 
>>>>>>>>> Greetings
>>>>>>>>> Ralf
>>>>>>>> 
>>>>>>>> ups ... let me be more precise.
>>>>>>>> 
>>>>>>>> the database and database user you have to create by yourself.
>>>>>>>> then you fill in the database info into the horde config.
>>>>>>>> on save of the horde conf.php you will then have the option to update all DB schema
>>>>>>>> which will actually create all the database tables needed
>>>>>>> 
>>>>>>> Finally, with you link I found the missung link :-)
>>>>>>> in 2. Configuring Horde
>>>>>>> "To configure Horde, change to the config/ directory of the installed distribution, and copy the conf.php.dist configuration file to conf.php."
>>>>>>> 
>>>>>>> Thanks for the hint. I now have a fallback, if I keep failing to migrate my H5....
>>>>>> 
>>>>>> Well I did a new install. And with some obstacles I have a somewhat running horde6, but still I can't get it in a working state using a sub-domain in a shared hosting env.
>>>>>> 
>>>>>> I do get the hosting to the point where the DocRoot points to the horde installation, but the re-write rules ail at a point:
>>>>>> WARNING: [pool www] child 26851 said into stderr: "[02-Mar-2023 16:09:18 Europe/Berlin] PHP Warning: require_once(<instpath>/horde/vendor/vendor/autoload.php): Failed to open stream: No such file or directory in <instpath>/horde/vendor/horde/horde/rampage.php on line 2"
>>>>>> 
>>>>>> I used grep recursively and there is no conf file which contains "vendor/vendor".
>>>>>> 
>>>>>> Resulting in the need to add the "index.php" in every app that is used. So I think I'l ive up.
>>>>>> --
>>>>>> Horde mailing list
>>>>>> Frequently Asked Questions: http://horde.org/faq/To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>> 
>>>>> Had almost the same problem until i did the Apache configuration right. I ended up with a virtual Apache2 configuration, that looks like this:
>>>>>  <VirtualHost webmail.example.com:80>
>>>>>          ServerName webmail.example.com
>>>>>          ServerAdmin admin at example.com
>>>>>          DocumentRoot /var/www/horde/web
>>>>>          # Alias /Microsoft-Server-ActiveSync /var/www/horde/web/rpc.php
>>>>>          DirectoryIndex index.php index.html
>>>>>          <Directory /var/www/horde>
>>>>>                  AllowOverride All
>>>>>                  Options FollowSymLinks
>>>>>          </Directory>
>>>>>          ErrorLog ${APACHE_LOG_DIR}/webmail-error.log
>>>>>          CustomLog ${APACHE_LOG_DIR}/webmail-access.log combined
>>>>>  </VirtualHost>
>>>>>  
>>>> 
>>>> I read that one, but since I'm on a shared hosting, I can't change the apache vhosts. What I can do is to link hordes web to be the DocumentRoot of my subdomain.
>>>> 
>>>> It then requires a "RewriteBase /" in the .htaccess file of the DocumentRoot.
>>>> 
>>>> I then end up with the vendor/vendor Problem. Did a fresh (empty) install to verify the problem.
>>>> My best guess is, that there is some combination of a path in some variable in combination with a relative path starting with "../../../" or similar. Which then endup in the vendor-path instead one up in the horde path. (hope that makes some sence?)
>>>> 
>>>> So it might still take a while till this might work, but it can very well be the case that my hoster is deactivating the last 7.x php version before that, which will leave me loosing all may calendar data (or at least in a very difficult to recover version.)
>>>> 
>>>> So as sad as that is, since I very
>>>> much like horde, I have to search fro a Plan B.
>>>> --
>>>>  
>>> 
>>> Let me see if I can install into a directory so the URL required is <somedomain.something>/horde. I've not done that, so i don't know offhand if there's an issue. It SHOULD work. You will certainly need to modify the cookie so that the horde cookie is /horde and not just "/", which is the default. This is in the main conf.php file.
>>> 
>>> $conf['cookie']['path'] = '/';  # should be changed to '/horde'
>>> 
>>> I don't know if the session cookie domain needs to be modified:
>>> 
>>> $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
>>> 
>>> I think that should be fine. It'll take me a little while to spin this up.
>>> 
>>> brent
>>>>> Update, the install now worked, the problem was composer, which original did not install correctly.
> 
> And you clarify that? Did you just do a second install or have you changede something (or was there another git-push?

I am sorry I responded to the wrong post



More information about the horde mailing list