Pages

Wednesday 6 November 2019

Install Web Client (7/7)

Install Web Client (7/7)

Configure horde database

[root@mailserver emc]# mysql -u root -p
Enter password: redhat
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7431
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>create user horde@localhost identified by "redhat";
Query OK, 0 rows affected (0.18 sec)

MariaDB [(none)]> grant all privileges on horde.* to horde@localhost;
Query OK, 0 rows affected (0.03 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]>\q


[root@mailserver etc]# pear channel-discover pear.horde.org
Adding Channel "pear.horde.org" succeeded
Discovery of channel "pear.horde.org" succeeded

[root@mailserver html]# pear install horde/horde_role
downloading Horde_Role-1.0.1.tgz ...
Starting to download Horde_Role-1.0.1.tgz (10,977 bytes)
.....done: 10,977 bytes
install ok: channel://pear.horde.org/Horde_Role-1.0.1
horde/Horde_Role has post-install scripts:
/usr/share/pear/PEAR/Installer/Role/Horde/Role.php
Horde_Role: Use "pear run-scripts horde/Horde_Role" to finish setup.
DO NOT RUN SCRIPTS FROM UNTRUSTED SOURCES

[root@mailserver html]# pear run-scripts horde/Horde_Role
Including external post-installation script "/usr/share/pear/PEAR/Installer/Role/Horde/Role.php" - any errors are in this script
Inclusion succeeded
running post-install script "Horde_Role_postinstall->init()"
init succeeded
Filesystem location for the base Horde application :
* Enter an answer for #1: (Filesystem location for the base Horde application)
Filesystem location for the base Horde application : /var/www/html/webmail
Configuration successfully saved to PEAR config.
Install scripts complete

[root@mailserver html]# mkdir /var/www/html/webmail

[root@mailserver html]# pear install -a -B horde/webmail
WARNING: "pear/Console_Getopt" is deprecated in favor of "pear/Console_GetoptPlus"
Unknown remote channel: phpseclib.sourceforge.net
WARNING: "pear/Net_Sieve" is deprecated in favor of "horde/Horde_ManageSieve"
Failed to download pear/Text_LanguageDetect within preferred state "stable", latest release is version 0.3.0, stability "alpha", use "channel://pear.php.net/Text_LanguageDetect-0.3.0" to install
Failed to download pecl/sasl within preferred state "stable", latest release is version 0.1.0, stability "alpha", use "channel://pecl.php.net/sasl-0.1.0" to install
Failed to download pecl/idn within preferred state "stable", latest release is version 0.2.0, stability "beta", use "channel://pecl.php.net/idn-0.2.0" to install
Failed to download pecl/ssh2 within preferred state "stable", latest release is version 0.12, stability "beta", use "channel://pecl.php.net/ssh2-0.12" to install
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
Failed to download pear/SOAP within preferred state "stable", latest release is version 0.13.0, stability "beta", use "channel://pear.php.net/SOAP-0.13.0" to install
Failed to download pear/Console_Color2 within preferred state "stable", latest release is version 0.1.2, stability "alpha", use "channel://pear.php.net/Console_Color2-0.1.2" to install
Failed to download pecl/msgpack within preferred state "stable", latest release is version 2.0.0, stability "beta", use "channel://pecl.php.net/msgpack-2.0.0" to install
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"

....

....

Output Omitted. 

....

....

install ok: channel://pear.horde.org/gollem-3.0.6
install ok: channel://pear.horde.org/imp-6.2.11
install ok: channel://pear.horde.org/ingo-3.2.7
install ok: channel://pear.horde.org/kronolith-4.2.11
install ok: channel://pear.horde.org/mnemo-4.2.8
install ok: channel://pear.horde.org/nag-4.2.6
install ok: channel://pear.horde.org/trean-1.1.3
install ok: channel://pear.horde.org/turba-4.2.11
install ok: channel://pear.horde.org/webmail-5.2.11
[root@mailserver html]# ls
webmail


[root@mailserver html]# ls webmail/
admin content imp ingo js lib login.php nag rpc services static test.php timeobjects turba
config gollem index.php install kronolith locale mnemo rampage.php rpc.php signup.php templates themes trean util

[root@mailserver html]# getenforce
Disabled

[root@mailserver html]# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: linux.mirrors.es.net
* epel: mirrors.cat.pdx.edu
* extras: linux.mirrors.es.net
* updates: mirrors.unifiedlayer.co.in
Package php-pdo-5.4.16-36.el7_1.x86_64 already installed and latest version
Nothing to do
[root@mailserver html]# webmail-install

Installing Horde Groupware Webmail Edition

Configuring database settings

What database backend should we use?
(false) [None]
(mysql) MySQL / PDO
(mysqli) MySQL (mysqli)
(oci8) Oracle
(pgsql) PostgreSQL
(sqlite) SQLite

Type your choice []: mysql

Username to connect to the database as* [] horde
Password to connect with
How should we connect to the database?
(unix) UNIX Sockets
(tcp) TCP/IP

Type your choice [unix]: tcp

Database server/host* [] localhost

Port the DB is running on, if non-standard [3306]

Database name to use* [] horde

Internally used charset* [utf-8]
Use SSL to connect to the server?
(1) Yes
(0) No

Type your choice [0]: 0

Certification Authority to use for SSL connections []
Split reads to a different server?
(false) Disabled
(true) Enabled

Type your choice [false]:

Writing main configuration file... done.

Creating and updating database tables... done.

Configuring administrator settings

Specify an existing mail user who you want to give administrator
permissions (optional):

Writing main configuration file... done.

Thank you for using Horde Groupware Webmail Edition!


No comments:

Post a Comment