Accueil | Rubriques | Réseautique | Serveurs | ClearOS

EGroupware sur ClearOS

ClearOS utilise PHP 5.1 et ne peut pas soutenir egrouwpare 1.7

Voir aussi:

https://addons.mozilla.org/en-US/thunderbird/addon/519

ClearOS utilise le serveur Kolab (cyrus-imap) qui est compatible avec le connecteur Outlook/Toltec.

Voir aussi:

 

 

This instruction is based on the default eGroupWare installation path, you can change this yourself (http://[FQDN]/egroupware)

 

Préparer le serveur

yum install php-pear.noarch php-gd.i386 php-xml.i386
apachectl restart
pear upgrade-all
pear install Auth_SASL
pear install XML_Feed_Parser
apachectl restart

Préparer la base de données

mkdir -p /root/egroupware/backups
cd /root/egroupware

myUser="egwuser"
myPass="'_my_password_'"

mysql -u root -p -e "CREATE DATABASE egroupware"
mysql -u root -p -e "GRANT ALL ON egroupware.* TO egroupware@localhost IDENTIFIED BY 'yoursecretegroupwaremysqlpassword'"


mysql --execute="create database egroupware"
mysql --execute="grant all privileges on egroupware.* to $myUser@localhost identified by $myPass"
mysql --execute="flush privileges"

echo <<<EOT
#!/bin/sh
mysql --execute="dum egroupware > /root/egroupware/backups/"
EOT
> /root/egroupware/egwdump.sh

 

Préparer EGroupware

cd /var/www/html
wget http://sourceforge.net/projects/egroupware/files/egroupware/eGroupware-1...
wget http://sourceforge.net/projects/egroupware/files/egroupware/eGroupware-1...
tar xvf eGroupware-1.6.002.tar.bz2
tar xvf eGroupware-egw-pear-1.6.002.tar.bz2
rm -fv eGroupware-1.6.002.tar.bz2 eGroupware-egw-pear-1.6.002.tar.bz2

 

Préparer /etc/php.ini

memory_limit = 96M
upload_max_filesize = 8M
mbstring.func_overload = 7

apachectl restart

Installation de EGroupware

Le fichier de configuration header.inc.php doit être téléchargé et placé manuellement à cause des restrictions (permissions) sur le répertoire.

Exemple de paramétrrage:

  • Path information, Virtual filesystem → [keep default]
  • Host information → fill in your own server settings
  • Standard mailserver settings (used for Mail authentication too) → fill in your own server settings
  • Authentication / Accounts →
    • Select which type of authentication you are using: choose [LDAP]
    • Select where you want to store/retrieve user accounts: [LDAP]
    • → [keep rest default]
  • If using LDAP → fill in your LDAP settings

Exemple de configuration LDAP:

  • LDAP host: 127.0.0.1
  • LDAP accounts: ou=Users,ou=Accounts,dc=xceed,dc=no-ip,dc=org
  • LDAP groups context: ou=Accounts,dc=xceed,dc=no-ip,dc=org
  • LDAP rootdn: cn=manager,cn=internal,dc=xceed,dc=no-ip,dc=org
  • LDAP root password: [this is the [LDAP Bind Password] as stated in the ClearOS web interface
    (Directory → Setup → Domain and LDAP → LDAP information)
  • LDAP encryption type: MD5
  • Do you want to manage homedirectory and loginshell attributes?: No
  • LDAP Default homedirectory prefix (e.g. /home for /home/username): /home
  • LDAP Default shell (e.g. /bin/bash): /bin/bash

Post-installation

chmod 640 /var/www/html/egroupware/header.inc.php
chown :apache /var/www/html/egroupware/header.inc.php
mkdir -p /var/lib/egroupware/default/files /var/lib/egroupware/default/backup
chown -R apache /var/lib/egroupware/default/
 

Mise à jour

Cette méthode préserve la version précédente sous "egroupware.old"

/root/egroupware/egwdump.sh
cd /var/www/html
mv egroupware egroupware.old
wget http://sourceforge.net/projects/egroupware/files/egroupware/eGroupware-1...
wget http://sourceforge.net/projects/egroupware/files/egroupware/eGroupware-1...
tar xvf eGroupware-1.6.003-2.tar.bz2
tar xvf eGroupware-egw-pear-1.6.003-2.tar.bz2
rm -fv eGroupware-1.6.003-2.tar.bz2 eGroupware-egw-pear-1.6.003-2.tar.bz2
cp egroupware.old/header.inc.php egroupware
chmod 640 /var/www/html/egroupware/header.inc.php
chown :apache /var/www/html/egroupware/header.inc.php

 

Configuration httpd.conf

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
Include conf.d/*.vhost

Notes

User apache
Group apache

mkdir -p /opt/webapps/egw16
touch /var/log/httpd/egroupware.domaine.com_error_log
touch /var/log/httpd/egroupware.domaine.com_access_log

chmod o+r /var/log/httpd/egroupware.domaine.com_error_log
chmodo+r /var/log/httpd/egroupware.domaine.com_access_log

touch /etc/httpd/conf.d/egroupware.vhost

<VirtualHost *:80>
    ServerName egroupware.domaine.com
    #ServerAlias *.domaine.com
    DocumentRoot /opt/webapps/egw16/egroupware
    ErrorLog /var/log/httpd/egroupware.domaine.com_error_log
    CustomLog /var/log/httpd/egroupware.domaine.com_access_log combined
</VirtualHost>

 

WebDAV

mod_auth_ldap.

http://ccforums.clearfoundation.com/showflat.php?Cat=0&Board=fun&Number=...

 

Here are the steps for making WebDAV as stable on CC5.0 as possible.

Install CC5.0. Enable Web Server. Enable File Server. Open Incoming 443. Start those services (File and Web). Create a user and group.
 

Create a flexshare and assign the group you created to the share. Set up the Web on the share with the following:
----

o Status: Enabled


----

o Show Index: Enabled


----

o SSL/HTTPS: Enabled


----

o Require Authentication: Enabled


 

Set up the File aspect of the Flexshare and Enable it.

Fire up the flexshare

edit /etc/httpd/conf.d/flex-443.ssl and add the following to a blank line before the last </Directory> line
----

o dav on

restart apache

set the setgid bit for the share
----

o chmod g+s /var/flexshare/shares/new_share

change the ownership of the share to apache (this is done in lieu of an easy way to have apache join the group assigned to the share)
----

o chown apache /var/flexshare/shares/new_share