Installing eGroupware on CentOS 7

I recently installed eGroupware on a CentOS 7 system. The eGroupware page contains an install guide but it looks to be a bit outdated.

The first step is to get php-5.6 installed, the RHEL 7.4 has php-5.4 (which the eGroupware guide requests) but the actual requirement is php-5.6.

–> Finished Dependency Resolution
Error: Package: egroupware-epl-core-17.1.20180321-1.1.noarch (server_eGroupWare)
Requires: php >= 5.6.0

This requires the Remi RPM Repository, which in turn requires EPEL.

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

Then in /etc/yum.repos.d/remi.repo enable the remi-php56 repo

[remi-php56]
name=Remi’s PHP 5.6 RPM repository for Enterprise Linux 7 – $basearch
#baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/7/php56/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/7/php56/mirror
# NOTICE: common dependencies are in “remi-safe”
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

After this you can get php-5.6 with a simple yum update.
# yum update php
Loaded plugins: fastestmirror
remi-php56 | 2.9 kB 00:00:00
remi-php56/primary_db | 230 kB 00:00:00
[...]
Updated:
php.x86_64 0:5.6.35-1.el7.remi

Dependency Updated:
php-cli.x86_64 0:5.6.35-1.el7.remi php-common.x86_64 0:5.6.35-1.el7.remi php-gd.x86_64 0:5.6.35-1.el7.remi
php-mbstring.x86_64 0:5.6.35-1.el7.remi php-mcrypt.x86_64 0:5.6.35-1.el7.remi php-pdo.x86_64 0:5.6.35-1.el7.remi

Replaced:
php-mysql.x86_64 0:5.4.16-43.el7_4.1

Complete!

Once this is done the eGoupware repo from OpenSUSE can be installed and eGroupware installed, you’ll also want MariaDB-server to get a mysql database as a backend.
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/server:eGroupWare/RHEL_7/server:eGroupWare.repo
yum install eGroupware
yum install mariadb-server

Next set the timezone in /etc/php.ini and restart and enable apache. Also enable mariadb and set a root password.
systemctl enable httpd
systemctl enable mariadb

systemctl restart httpd
systemctl start mariadb
mysqladmin -u root password newpass

Then go to your webserver at /egroupware/setup/check_install.php to check for issues then continue through the rest of the setup.

Leave a Reply

Your email address will not be published. Required fields are marked *