Server Installation for SLES 11

Aus TecArt-CRM Wiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Distribution herunterladen

...

Suse Linux Enterprise Sever Distribution installieren

Booten Sie die eben erstellte CD in Ihrem Server.

Installer Boot Menu

SScreen01.png

Sprache wählen

SScreen02.png

Medium überprüfen

SScreen03.png

Installationsmodus wählen

SScreen04.png

Uhrzeit und Zeitzone wählen

SScreen05.png

Server-Basisszenario wählen

SScreen06.png

Festplatten mit LVM einrichten

Partitionen manuell erstellen

SScreen07.png

Festplatte wählen

SScreen08.png

Neue Partition erstellen (SWAP)

SScreen09.png

Partitionstyp der SWAP-Partition festlegen (Primär)

SScreen10.png

Größe der SWAP-Partition festlegen

SScreen11.png

Benutzen als SWAP

SScreen12.png

Neue Partition erstellen (ROOT)

SScreen13.png

Partitionstyp der ROOT-Partition festlegen (Primär)

SScreen14.png

Größe der ROOT-Partition festlegen

SScreen15.png

Einhängepunkt der ROOT-Partition festlegen

SScreen16.png

Neue Partition erstellen (LVM)

SScreen17.png

Partitionstyp der LVM-Partition festlegen (Primär)

SScreen18.png

Größe der LVM-Partition festlegen

SScreen19.png

Einhängepunkt der LVM-Partition festlegen

SScreen20.png

LVM Volume-Gruppe erstellen

SScreen21.png

Name der Volume-Gruppe festlegen

SScreen22.png

LVM-Partition zur Volume-Gruppe hinzufügen

SScreen23.png

Neues logischen Volumes auf LVM erstellen (/usr)

SScreen24.png

Name des logischen Volumes festlegen (/usr)

SScreen25.png

Größe des logischen Volumes festlegen (/usr)

SScreen26.png

Einhängepunkt des logischen Volumes festlegen (/usr)

SScreen27.png

Neues logischen Volumes auf LVM erstellen (/var)

SScreen28.png

Name des logischen Volumes festlegen (/var)

SScreen29.png

Größe des logischen Volumes festlegen (/var)

SScreen30.png

Einhängepunkt des logischen Volumes festlegen (/var)

SScreen31.png

Neues logischen Volumes auf LVM erstellen (/data)

SScreen32.png

Name des logischen Volumes festlegen (/data)

SScreen33.png

Größe des logischen Volumes festlegen (/data)

SScreen34.png

Einhängepunkt des logischen Volumes festlegen (/data)

SScreen35.png

Partitionierung beenden

SScreen36.png

Softwarepakete konfigurieren

SScreen37.png

Nicht benötigte Pakete entfernen

SScreen38.png

Installation starten

SScreen39.png

SScreen40.png

SScreen41.png

System neu starten

SScreen42.png

System konfigurieren

ROOT-Passwort vergeben

SScreen43.png

Hostname und Domain festlegen

SScreen44.png

Netzwerk konfigurieren

SScreen45.png

SSH-Port öffnen

SScreen46.png

Speichern der Konfiguration

SScreen47.png

Test der Internetverbindung

SScreen48.png

SScreen49.png

Konfiguration für Novell Customer Center

SScreen50.png

Konfiguration von Netzwerk-Services

SScreen51.png

Benutzer einrichten

Authentifizierungsmethode festlegen

SScreen52.png

Lokalen Benutzer anlegen

SScreen53.png

Release Notes bestätigen

SScreen54.png

Hardware-Konfiguration bestätigen

SScreen55.png

Installation abschliessen

SScreen56.png

Boot Menu

SScreen57.png

Login Prompt

SScreen58.png

Als root einloggen

SScreen59.png

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.

Licence Agreement
Set Password
Newsletter Registration
Dashboard

Zu "Server Setup -> Directives" navigieren:

memory_limit auf 256M setzen
post_max_size auf 128M setzen
max_file_uploads auf 1000 setzen
upload_max_filesize auf 128M setzen
PHP neu starten

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

http://www.clever-crm.de

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.

CRM-Setup 1
CRM-Setup 2
CRM-Setup 3
Fortschritt
CRM-Setup abgeschlossen

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:

Einloggen mit 'root' ohne Kennwort
Eingeloggt
Persönliche Werkzeuge
Namensräume
Varianten
Aktionen
Themen
Navigation
Werkzeuge