Server Installation for SLES 11
Aus TecArt-CRM Wiki
Distribution herunterladen
...
Suse Linux Enterprise Sever Distribution installieren
Booten Sie die eben erstellte CD in Ihrem Server.
Installer Boot Menu
Sprache wählen
Medium überprüfen
Installationsmodus wählen
Uhrzeit und Zeitzone wählen
Server-Basisszenario wählen
Festplatten mit LVM einrichten
Partitionen manuell erstellen
Festplatte wählen
Neue Partition erstellen (SWAP)
Partitionstyp der SWAP-Partition festlegen (Primär)
Größe der SWAP-Partition festlegen
Benutzen als SWAP
Neue Partition erstellen (ROOT)
Partitionstyp der ROOT-Partition festlegen (Primär)
Größe der ROOT-Partition festlegen
Einhängepunkt der ROOT-Partition festlegen
Neue Partition erstellen (LVM)
Partitionstyp der LVM-Partition festlegen (Primär)
Größe der LVM-Partition festlegen
Einhängepunkt der LVM-Partition festlegen
LVM Volume-Gruppe erstellen
Name der Volume-Gruppe festlegen
LVM-Partition zur Volume-Gruppe hinzufügen
Neues logischen Volumes auf LVM erstellen (/usr)
Name des logischen Volumes festlegen (/usr)
Größe des logischen Volumes festlegen (/usr)
Einhängepunkt des logischen Volumes festlegen (/usr)
Neues logischen Volumes auf LVM erstellen (/var)
Name des logischen Volumes festlegen (/var)
Größe des logischen Volumes festlegen (/var)
Einhängepunkt des logischen Volumes festlegen (/var)
Neues logischen Volumes auf LVM erstellen (/data)
Name des logischen Volumes festlegen (/data)
Größe des logischen Volumes festlegen (/data)
Einhängepunkt des logischen Volumes festlegen (/data)
Partitionierung beenden
Softwarepakete konfigurieren
Nicht benötigte Pakete entfernen
Installation starten
System neu starten
System konfigurieren
ROOT-Passwort vergeben
Hostname und Domain festlegen
Netzwerk konfigurieren
SSH-Port öffnen
Speichern der Konfiguration
Test der Internetverbindung
Konfiguration für Novell Customer Center
Konfiguration von Netzwerk-Services
Benutzer einrichten
Authentifizierungsmethode festlegen
Lokalen Benutzer anlegen
Release Notes bestätigen
Hardware-Konfiguration bestätigen
Installation abschliessen
Boot Menu
Login Prompt
Als root einloggen
Benötigte Software installieren
Über Repositories verfügbare Software
[root@crmsrv /]# zypper install diff gcc gcc-c++ mc clamav aspell aspell-de whois mysql
Manuell zu installierende Software
spamprobe
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://crmdev.tecart.de/images/7/74/Spamprobe-1.4d.tar.gz' [root@crmsrv /]# tar -xvzf Spamprobe-1.4d.tar.gz [root@crmsrv /]# cd spamprobe-1.4d/ [root@crmsrv /]# ./configure --prefix=/usr -with-db=/usr [root@crmsrv /]# make [root@crmsrv /]# make install
ytnef
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://crmdev.tecart.de/images/c/c8/Libytnef-1.5.tar.gz' [root@crmsrv /]# tar -xvzf Libytnef-1.5.tar.gz [root@crmsrv /]# cd libytnef-1.5/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install [root@crmsrv /]# rm /etc/ld.so.cache [root@crmsrv /]# ldconfig [root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://crmdev.tecart.de/images/5/5b/Ytnef-2.6.tar.gz' [root@crmsrv /]# tar -xvzf Ytnef-2.6.tar.gz [root@crmsrv /]# cd ytnef-2.6/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install [root@crmsrv /]# rm /etc/ld.so.cache [root@crmsrv /]# ldconfig
imagemagick
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://image_magick.veidrodis.com/image_magick/ImageMagick.tar.gz' [root@crmsrv /]# tar -xvzf ImageMagick.tar.gz [root@crmsrv /]# cd ImageMagick-X.X.X-X/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install [root@crmsrv /]# rm /etc/ld.so.cache [root@crmsrv /]# ldconfig
catdoc
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://crmdev.tecart.de/images/6/69/Catdoc-0.94.2.tar.gz' [root@crmsrv /]# tar -xvzf Catdoc-0.94.2.tar.gz [root@crmsrv /]# cd catdoc-0.94.2/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install
xpdf
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz' [root@crmsrv /]# tar -xvzf xpdf-3.02.tar.gz [root@crmsrv /]# cd xpdf-3.02/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install
elinks
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://crmdev.tecart.de/images/d/d2/Elinks-0.11.5.tar.gz' [root@crmsrv /]# tar -xvzf Elinks-0.11.5.tar.gz [root@crmsrv /]# cd elinks-0.11.5/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install
gocr
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz' [root@crmsrv /]# tar -xvzf gocr-0.49.tar.gz [root@crmsrv /]# cd gocr-0.49/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install
memcached
[root@crmsrv /]# zypper addrepo -f http://download.opensuse.org/repositories/devel:/libraries:/c_c++/SLE_11 devel [root@crmsrv /]# zypper refresh [root@crmsrv /]# zypper install libevent-devel [root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz' [root@crmsrv /]# tar -xvzf memcached-1.4.5.tar.gz [root@crmsrv /]# cd memcached-1.4.5/ [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make [root@crmsrv /]# make install [root@crmsrv /]# cp /usr/src/memcached-1.4.5/scripts/memcached-init /etc/init.d/memcached [root@crmsrv /]# mkdir -p /usr/share/memcached/scripts/ [root@crmsrv /]# cp /usr/src/memcached-1.4.5/scripts/start-memcached /usr/share/memcached/scripts/start-memcached
Zend-Server installieren
Bitte laden Sie den Zend-Server für Linux (Zend Server DEB/RPM Installer Script) unter Zend Server herunter. Alternativ können Sie Ihn hier herunterladen: Datei:ZendServer-5.0.3-RepositoryInstaller-linux.tar.gz.
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget http://crmdev.tecart.de/images/b/ba/ZendServer-5.0.3-RepositoryInstaller-linux.tar.gz [root@crmsrv /]# tar -xvzf ZendServer-5.0.3-RepositoryInstaller-linux.tar.gz [root@crmsrv /]# ZendServer-RepositoryInstaller-linux/install_zs.sh 5.2 ce
Anschliessend mit ENTER bestätigen.
[root@crmsrv /]# openssl req -new -x509 -days 365 -nodes -out /usr/local/zend/etc/tls/certs/lighttpd.pem -keyout /usr/local/zend/etc/tls/certs/lighttpd.pem [root@crmsrv /]# chmod 600 /usr/local/zend/etc/tls/certs/lighttpd.pem [root@crmsrv /]# chkconfig [root@crmsrv /]# zypper install php-5.2-loader-zend-server php-5.2-memcache-zend-server php-5.2-xmlrpc-zend-server [root@crmsrv /]# /etc/init.d/zend-server restart
Server konfigurieren
Uhrzeit mit Zeitserver synchronisieren
[root@crmsrv /]# echo -e '#!/bin/sh\n/usr/sbin/ntpdate ntps1-0.cs.tu-berlin.de ptbtime1.ptb.de de.pool.ntp.org > /dev/null 2>&1' > /etc/cron.daily/netdate [root@crmsrv /]# chmod +x /etc/cron.daily/netdate
MySQL-Server konfigurieren
[root@crmsrv /]# /etc/init.d/mysql stop
Bearbeiten Sie die Datei /etc/my.cnf:
[client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] user = mysql port = 3306 bind-address = 127.0.0.1 socket = /var/run/mysqld/mysqld.sock pid-file = /var/run/mysqld/mysqld.pid basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking skip-locking key_buffer = 1024M max_allowed_packet = 64M table_cache = 500 sort_buffer_size = 8M net_buffer_length = 8K read_buffer_size = 4M read_rnd_buffer_size = 8M myisam_sort_buffer_size = 64M thread_cache_size = 10 thread_concurrency = 8 max_connections = 300 open_files_limit = 16384 tmp_table_size = 64M max_heap_table_size = 32M connect_timeout = 30 wait_timeout = 300 join_buffer_size = 1M query_cache_limit = 128M query_cache_size = 128M query_cache_type = 1 query_prealloc_size = 16384 query_alloc_block_size = 16384 log_error = /var/log/mysql/mysql.err skip-innodb old_passwords = false low_priority_updates = 1 [mysqldump] quick max_allowed_packet = 64M [mysql] no-auto-rehash [isamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout
[root@crmsrv /]# /etc/init.d/mysql start [root@crmsrv /]# /usr/bin/mysqladmin -u root password 'ihrpasswort'
CRM-Datenbank anlegen
[root@crmsrv /]# mysql -u root -p
mysql> CREATE USER 'crmuser'@'localhost' IDENTIFIED BY 'crmpass'; mysql> GRANT USAGE ON *.* TO 'crmuser'@'localhost' IDENTIFIED BY 'crmpass' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; mysql> CREATE DATABASE `crmdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; mysql> GRANT ALL PRIVILEGES ON `crmdb`.* TO 'crmuser'@'localhost'; mysql> FLUSH PRIVILEGES; mysql> exit
Memcache-Daemon konfigurieren
Bearbeiten Sie die Datei /etc/memcached.conf:
-d # Start as Daemon -m 1024 # Wieviel Megabyte darf Memcached verwenden? -u wwwrun # Apache User -s /tmp/memcached.sock # Socket
[root@crmsrv /]# /etc/init.d/memcached restart
Zend-Server konfigurieren
[root@crmsrv /]# ln -s /usr/local/zend/bin/php /usr/bin/php
IP-Adresse herausfinden: ( z.B. 192.168.150.182 )
[root@crmsrv /]# ifconfig eth0 | grep 'inet ' | awk '{print $2}'
URL: http://192.168.150.182:10081/ im Browser aufrufen.
Zu "Server Setup -> Directives" navigieren:
CRM installieren
CRM herunterladen
Aktuelle CRM-Version hier herunterladen: Downloads.
[root@crmsrv /]# cd /srv/www/htdocs [root@crmsrv /]# wget -O Crm_3.3.4383.tar.gz https://crmdev.tecart.de/images/8/83/Crm_3.3.4383.tar.gz
CRM-Archiv entpacken
[root@crmsrv /]# tar -xvzf Crm_3.3.4383.tar.gz
Benötigte Verzeichnisse anlegen und Rechte setzen
[root@crmsrv /]# mkdir /srv/www/htdocs/crm_v33/mailtmp [root@crmsrv /]# mkdir /srv/www/htdocs/crm_v33/config [root@crmsrv /]# mkdir /data/crm [root@crmsrv /]# chown -R wwwrun:www /srv/www/htdocs/crm_v33 [root@crmsrv /]# chmod -R 0700 /srv/www/htdocs/crm_v33 [root@crmsrv /]# chown -R wwwrun:www /data/crm [root@crmsrv /]# chmod -R 0700 /data/crm
Lizenzschlüssel installieren
Host-ID herausfinden
[root@crmsrv /]# ifconfig eth0 | grep 'Hardware Adresse' | awk '{print $6}' | sed 's/://g'
Lizenzschlüssel bestellen
Lizenzschlüssel einspielen
[user@workstation:~$] scp Downloads/licence.key root@192.168.150.182:/srv/www/htdocs/crm_v33/config/licence.key
CRM-Setup ausführen
URL: http://192.168.150.182/crm_v33/setup/ im Browser aufrufen.
Apache-Server konfigurieren
Datei /etc/apache2/vhosts.d/default.conf bearbeiten:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /srv/www/htdocs/crm_v33/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/www/htdocs/crm_v33/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /Microsoft-Server-ActiveSync /srv/www/htdocs/crm_v33/zpush/index.php
ErrorLog /var/log/apache2/error.log
LogLevel error
#CustomLog /var/log/apache2/access.log combined
</VirtualHost>
[root@crmsrv /]# /etc/init.d/apache2 restart
Apache-Server für SSL konfigurieren
[root@crmsrv /]# a2enmod ssl [root@crmsrv /]# a2enflag SSL
Datei /etc/apache2/vhosts.d/default-ssl.conf bearbeiten:
<IfDefine SSL>
<IfDefine !NOSSL>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /srv/www/htdocs/crm_v33/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/www/htdocs/crm_v33/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /Microsoft-Server-ActiveSync /srv/www/htdocs/crm_v33/zpush/index.php
ErrorLog /var/log/apache2/error.log
LogLevel error
#CustomLog /var/log/apache2/ssl_access.log combined
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl.crt/snakeoil-dsa.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/snakeoil-dsa.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
</IfDefine>
</IfDefine>
[root@crmsrv /]# /etc/init.d/apache2 restart
Das vorinstallierte Zertifikat verschlüsselt zwar die Verbindung. Diese wird durch den Browser aber als "nicht vertrauenswürdig" eingestuft. Sie benötigen hierzu ein Zertifikat von einer Zertifizierungsstelle. Das SSL-Zertifikat für Ihre Domain können Sie unter http://www.clever-crm.de/de/tecart-kontakt-anfrage bestellen.
Ins CRM einloggen
Rufen Sie die URL http://192.168.150.182 (IP Ihres Servers) in Ihrem Browser auf:


























































