Voici un bref howto pour installer eGW 1.6 sur SME 8... (Attention, c'est incompatible avec SME 7.x !)
- Code: Tout sélectionner
## INSTALLATION
wget http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_5/noarch/eGroupware-1.6.002-9.1.noarch.rpm
wget http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_5/noarch/eGroupware-egw-pear-1.6.002-9.1.noarch.rpm
yum localinstall eGroupware-1.6.002-9.1.noarch.rpm eGroupware-egw-pear-1.6.002-9.1.noarch.rpm -y
## CREATION MySQL DB & USER
mysqladmin -u root create egroupware
mysql -e " grant all privileges on egroupware.* to 'egroupware'@'localhost' "
mysql -u root -e " SET PASSWORD FOR egroupware@localhost = PASSWORD( 'egroupware_db_password' ) "
mysqladmin flush-privileges
## PARAMETRAGE DE LA SECURITE
chmod 666 /var/lib/egroupware/header.inc.php
chmod 777 /var/lib/egroupware/default/backup/
chmod 777 /var/lib/egroupware/default/files/
## CONFIG APACHE
rm /etc/httpd/conf.d/egroupware.conf
cat > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/98eGroupWare << EOF
####################################
# eGroupWare
####################################
Alias /egroupware /usr/share/egroupware
<Directory /usr/share/egroupware/>
AddType application/x-httpd-php .php .php3 .phtml
AddType text/xml .xml
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
AddHandler cgi-script .cgi
AddDefaultCharset Off
php_flag file_uploads on
php_flag log_errors on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag register_globals off
php_flag short_open_tag on
php_flag track_vars on
php_flag display_errors off
php_value error_reporting 'E_ALL & ~E_NOTICE'
php_value max_execution_time 90
php_admin_value mbstring.func_overload 7
php_value memory_limit 48M
php_value session.gc_maxlifetime 14400
php_value include_path .:/usr/share/pear
php_value open_basedir /usr/share/egroupware:/var/lib/egroupware:/tmp:/usr/share/pear
php_value upload_max_filesize 8M
<Files ~ "\.inc\.php$">
Order allow,deny
Deny from all
</Files>
</Directory>
<Directory /usr/share/egroupware/phpsysinfo/>
php_value open_basedir /
</Directory>
<Location /egroupware/icalsrv/icalsrv.php>
Script PUT /usr/share/egroupware/icalsrv/icalsrv.php
AddHandler ical/ics .ics
Action ical/ics /usr/share/egroupware/icalsrv/icalsrv.php
Order allow,deny
Allow from all
</Location>
<Location /egroupware/rpc.php>
php_admin_value mbstring.func_overload 0
Order allow,deny
Allow from all
</Location>
EOF
## APPLIQUER LES CHANGEMENTS
expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith sigusr1
## LANCER LE SETUP D'EGROUPWARE
http://yourdomain.com/egroupware/setup
## UNE FOIS INSTALLE, REPARAMETRER LA SECURITE
chmod 644 /var/lib/egroupware/header.inc.php
Enjoy