Accueil | Rubriques | Réseautique | Serveurs | ClearOS

EGroupware on ClearOS with subversion

How to install Egroupware 1.6 on ClearOS,
using subversion

Folder for installation

mkdir -p /opt/egw/1.6

Put needed files in this folder

Files needed:

  • svnupdate16:
    this will download and update Egroupware from SVN directory
     
  • svnupdateperms16:
    this will set permissions on folders and files
     
  • x-egroupware.conf:
    this will make apache accept a subdomain like egroupware.your-domain.com

# Rename files

mv svnupdate16.sh      svnupdate
mv svnupdateperms16.sh svnupdateperms

# Install dependencies

yum -y install php-pear.noarch php-gd.i386 php-xml.i386 subversion

pear upgrade-all
pear install Auth_SASL
pear install XML_Feed_Parser

# Prepare apache & php (utf8 is needed for multilingual options)

echo "# for egroupware"               >> /etc/php.ini
echo "memory_limit = 96M"             >> /etc/php.ini
echo "upload_max_filesize = 8M"       >> /etc/php.ini
echo "mbstring.func_overload = 7"     >> /etc/php.ini

cp x-egroupware.conf /etc/httpd/conf.d

# Apply changes

apachectl restart

# Make folders for data

myfolder=/opt/egw
myUser="egwuser"
myPass="'_my_password_'"     # change this to a strong password

mkdir -p $myfolder/userdata/{tmp,files,backup}
chown -R apache:apache $myfolder/userdata
chmod -R u+w $myfolder/userdata
chmod -R o-r $myfolder/userdata
chmod -R o-x $myfolder/userdata

# Create database or use phpmyadmin to do it

mysql -u root -p -e "CREATE DATABASE egroupware"
mysql -u root -p -e "GRANT ALL ON egroupware.* TO $myUser@localhost IDENTIFIED BY $myPass"
mysql -u root -p -e "flush privileges;"

# Install egroupware

$myfolder/1.6/svnupdate

This first part is done.

 

Finalize

Do setup in http://egroupware.your-server.your-domain/setup/:

  • folders for files would be /opt/egw/userdata/files
  • folders for backups would be /opt/egw/userdata/backups
  • folders for tmp would be /opt/egw/userdata/tmp
  • LDAP is good for egroupware users limited to those known to the server, but for users external to the server, Egrouwpare should handle the users list.
  • webDAV would be the best way to store files but it is not yet working correctly
  • make header.inc.php manually in /opt/egw/1.6/egroupware

There is one last step to finish installation.

# After setup :

EGWFOLDER=/opt/egw/1.6
chown apache $EGWFOLDER/egroupware/header.inc.php
chmod 600 $EGWFOLDER/egroupware/header.inc.php

Some say that header.inc.php should not be left in this folder

# move header file to parent folder

mv header.inc.php ..

# link to header file

ln -s ../header.inc.php header.inc.php

Then test egroupware with these new settings and adjust permissions if egroupware shows a blank page or setup page again.

Fichier attachéTaille
svnupdate16.sh1 Ko
svnupdateperms16.sh655 octets
x-egroupware.conf1.54 Ko