[horde] Migrating horde 5.0.3 to a CentOS server
Vilius Sumskas/LNK
vilius at lnk.lt
Mon Feb 13 13:24:38 UTC 2017
> > > 2017-02-13 12:32 GMT+01:00 Maurício Jsé T. Tecles
> > <mtecles at biof.ufrj.br>:
> > >
> > > >
> > > > Citando Silvan Voser <silvan.voser at gmail.com>:
> > > >
> > > > 2017-02-10 17:16 GMT+01:00 Michael J Rubinsky
<mrubinsk at horde.org>:
> > > >>
> > > >>
> > > >>> Quoting Silvan Voser <silvan.voser at gmail.com>:
> > > >>>
> > > >>> 2017-02-10 16:00 GMT+01:00 Vilius Sumskas/LNK <vilius at lnk.lt>:
> > > >>>
> > > >>>>
> > > >>>> > Ok. So how would be the procedure if I will use pear instead
of
> > the
> > > >>>> rpm
> > > >>>>
> > > >>>>> > packages?
> > > >>>>>
> > > >>>>> Please do not top post.
> > > >>>>>
> > > >>>>> > > > Hello everybody
> > > >>>>> > > >
> > > >>>>> > > > I am looking for a good way to migrate a horde
installation
> > > >>>>> version
> > > >>>>> > > 5.0.3
> > > >>>>> > > > to a CentOS server. Is there an official procedure how
this
> > > >>>>> should
> > > >>>>> be
> > > >>>>> > > done?
> > > >>>>> > > >
> > > >>>>> > > > I have already copied the /var/www/horde directory and
the
> > horde
> > > >>>>> > > database
> > > >>>>> > > > to the new server and horde works, but only if I install
the
> > > >>>>> > > > packages php-horde-horde and php-channel-horde. Now i
cannot
> > > >>>>> upgrade
> > > >>>>> the
> > > >>>>> > > > horde installation with pear to the latest version.
> > > >>>>> > >
> > > >>>>> > > You have to choose one installation method or another. You
> > cannot
> > > >>>>> mix
> > > >>>>> rpm
> > > >>>>> > > packages with pear.
> > > >>>>>
> > > >>>>> Just install everything according to
> > > >>>>> https://www.horde.org/apps/horde/docs/INSTALL and then copy
> > database
> > > >>>>> and
> > > >>>>> config files to the new server.
> > > >>>>>
> > > >>>>> After that run the upgrade procedures according to upgrade
> > > >>>>> documentation
> > > >>>>> if versions do not match.
> > > >>>>>
> > > >>>>>
> > > >>>>> I have installed horde according to your link, created a
database
> > and
> > > >>>> imported the copied database and I copied
> > /var/www/horde/config/conf.php
> > > >>>> from my old horde to the new horde.
> > > >>>> Now, the horde is shown in the latest version, but I cannot log
in
> > with
> > > >>>> the
> > > >>>> user which is defined in $conf['auth']['admins'] to configure
> > horde.
> > > >>>>
> > > >>>>
> > > >>> Did you copy the config files over from the other applications
as
> > well?
> > > >>> Specifically, IMP? Sounds like you are probably using
> > application/imp
> > > >>> authentication but IMP isn't configured correctly.
> > > >>>
> > > >>>
> > > >> Yes, I copied over /var/www/horde/imp/config/backends.php and
> > > >> /var/www/horde/imp/config/conf.php to the new installation.
However,
> > if I
> > > >> copy the config from conf.php.dist then it works.
> > > >>
> > > >
> > > > What is on your backends.php, backends.local.php and conf.php.
Usually
> > one
> > > > changes only backends.local.php, neither conf.php, nor
backends.php.
> > > >
> > > >
> > > >> Why I cannot simply copy the /var/www/horde from the source
server to
> > the
> > > >> new server and then upgrad each component? This would be the
easiest
> > way
> > > >> for me.
> > > >>
> > > >
> > > > Installing Horde is beyond just copying Horde directory from one
> > server to
> > > > another.
> > > >
> > >
> > > I could migrate horde to the new server as follow:
> > >
> > > Copy database
> > > Copy /var/www/horde
> > > pear upgrade PEAR
> > > pear channel-discover pear.horde.org
> > > pear install horde/horde_role
> > > pear run-scripts horde/horde_role # Choose the copied horde
directory
> > > /var/www/horde
> > > pear upgrade horde/webmail
> > >
> > > Are there reasons not to migrate & upgrade horde like this?
> >
> > Unless both systems are a complete clone of each other, then yes.
Horde
> > libraries are installed into PEAR's directory. On some OSes it is
under
> > /usr/share/pear, on some under /usr/share/php, and on others
> > /usr/local/share/php
> >
>
> No libraries are missing in the horde webinterface, the webinterface
works.
Web interface doesn't show all libraries. It only shows libraries and
module which have database schema and configuration files.
> > Also it depends on how you originally installed Horde. RPMs could put
> > files into different paths.
> >
>
> Originally, it was installed with PEAR.
>
>
> >
> > You should also not copy configuration files blindly. There are
> > differences in files between versions (see
> > https://www.horde.org/apps/horde/docs/UPGRADING)
> >
>
> I have checked the upgrade docs and updated the configuration files as
> needed.
> I also upgraded the database.
>
>
> >
> > My recommended procedure would be:
> > 1) Install Horde on the new server from scratch.
> > 2) Recreate/adjust configuration files according to your old
> > configuration.
> > 3) Copy database/vfs data.
> > 4) Run DB migrations if needed.
> >
>
> I will also check this way to migrate the horde installation.
>
> Many thanks for your help on this mailing list!
>
>
> >
> > --
> > Vilius
> >
> > --
> > Horde mailing list
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> >
>
>
>
> --
> Freundliche Grüsse
> Silvan Voser
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
More information about the horde
mailing list