Server Installation for CentOS 5.6
Aus TecArt-CRM Wiki
CentOS Distribution herunterladen
Als erstes müssen Sie die Ihrem System entsprechende Distribution herunterladen unter CentOS.org.
Anschließend brennen Sie das Image auf CD und booten damit Ihren Server.
CentOS Distribution installieren
Booten Sie die eben erstellte CD in Ihrem Server.
Installer Boot Menu
Sprache wählen
Tastaturtyp wählen
Installationsmethode wählen
TCP/IP konfigurieren
HTTP-Mirror konfigurieren
Name der Webseite: ftp.hosteurope.de
CentOS Verzeichnis: /mirror/centos.org/5.6/os/x86_64
Release Notes
Partitionierung Warnung
Klicken Sie hier bitte auf Ja.
Partitionierung Teil 2
Partitionen löschen und Standard-Layout kreieren.
Netzwerkgeräte konfigurieren
Region auswählen
Root-Passwort setzen
Paketauswahl
Alle Pakete abwählen und auf Weiter klicken.
Server neu starten
Erster Start
Nichts konfigurieren und auf Beenden klicken.
Login
Nicht benötigte Software deinstallieren
[root@crmsrv /]# chkconfig --level 345 ip6tables off [root@crmsrv /]# chkconfig --level 345 iptables off [root@crmsrv /]# chkconfig --level 345 isdn off [root@crmsrv /]# chkconfig --level 345 portmap off [root@crmsrv /]# chkconfig --level 345 nfslock off [root@crmsrv /]# chkconfig --level 345 bluetooth off
[root@crmsrv /]# yum remove gpm sendmail
Datei /etc/sysconfig/selinux bearbeiten:
SELINUX=disabled SELINUXTYPE=targeted
[root@crmsrv /]# reboot
Benötigte Software installieren
[root@crmsrv /]# yum install mc ntp ImageMagick.x86_64 elinks.x86_64 openssl aspell aspell-de aspell-en [root@crmsrv /]# yum install mysql-server httpd [root@crmsrv /]# yum install gcc gcc-c++ autoconf automake
Erweiterte Repositories installieren
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm' [root@crmsrv /]# rpm -i epel-release-5-4.noarch.rpm [root@crmsrv /]# yum repolist [root@crmsrv /]# yum install yum-priorities
Datei /etc/yum.repos.d/epel.repo bearbeiten und priority=10 in Sektion [epel] einfügen:
[epel] name=Extra Packages for Enterprise Linux 5 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL priority=10 [epel-debuginfo] name=Extra Packages for Enterprise Linux 5 - $basearch - Debug ...
[root@crmsrv /]# yum check-update
ClamAV installieren
[root@crmsrv /]# yum install clamd
MemCache-Daemon installieren
[root@crmsrv /]# yum install memcached
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 && 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 && 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 && make install
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 && make install
xpdf
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget 'ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz' [root@crmsrv /]# tar -xvzf xpdf-3.03.tar.gz [root@crmsrv /]# cd xpdf-3.03 [root@crmsrv /]# ./configure --prefix=/usr [root@crmsrv /]# make && 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 && make install
Zend-Server Installation
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget http://wiki.clever-crm.de/images/8/8e/ZendServer-5.6.0-RepositoryInstaller-linux.tar.gz [root@crmsrv /]# tar -xvzf ZendServer-5.6.0-RepositoryInstaller-linux.tar.gz [root@crmsrv /]# ZendServer-RepositoryInstaller-linux/install_zs.sh 5.3 ce
[root@crmsrv /]# yum install php-5.3-loader-zend-server php-5.3-memcache-zend-server php-5.3-xmlrpc-zend-server
[root@crmsrv /]# ln -s /usr/local/zend/bin/php /usr/bin/php
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
Datei /etc/my.cnf bearbeiten:
[client] port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld_safe] socket = /var/lib/mysql/mysql.sock nice = 0 [mysqld] user = mysql port = 3306 bind-address = 127.0.0.1 socket = /var/lib/mysql/mysql.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 = 512M 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 [mysqlhotcopy] interactive-timeout
[root@crmsrv /]# /etc/init.d/mysqld start [root@crmsrv /]# /usr/bin/mysqladmin -u root password 'yourmysqlrootpw' [root@crmsrv /]# chkconfig --level 345 mysqld on
Memcache-Daemon konfigurieren
Bearbeiten Sie die Datei /etc/sysconfig/memcached:
PORT="11211" # Port USER="apache" # Apache User MAXCONN="1024" # Anzahl max. Verbindungen CACHESIZE="128" # Wieviel Megabyte darf Memcached verwenden? OPTIONS="-s /tmp/memcached.sock" # Socket
[root@crmsrv /]# /etc/init.d/memcached start [root@crmsrv /]# chkconfig --level 345 memcached on
Zend-Server konfigurieren
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.
Administration -> License and Password -> Zend Server Feature Content -> No
Zend Data Cache und Zend Debugger deaktivieren:
Zu "Server Setup -> Directives" navigieren:
Apache-Server konfigurieren
Datei /etc/httpd/conf.d/crm.conf anlegen:
<VirtualHost *:80>
ServerAdmin webmaster@crmsrv
DocumentRoot /var/www/crm/
<Directory /var/www/crm/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /Microsoft-Server-ActiveSync /var/www/crm/zpush/index.php
ErrorLog /var/log/httpd/error.log
LogLevel error
#Enable if you wish logging, Disable if you want performance
#CustomLog /var/log/httpd/access.log combined
</VirtualHost>
[root@crmsrv /]# /etc/init.d/zend-server restart
CRM installieren
CRM herunterladen
Aktuelle CRM-Version für PHP 5.3 hier herunterladen: Downloads.
[root@crmsrv /]# cd /usr/src [root@crmsrv /]# wget http://wiki.clever-crm.de/images/d/d1/Crm_3.4.5381_53.tar.gz
CRM-Archiv entpacken
[root@crmsrv /]# tar -xvzf Crm_3.4.5381_53.tar.gz [root@crmsrv /]# mkdir -p /var/www/crm [root@crmsrv /]# cp -Rv crm_v34/* /var/www/crm/
Benötigte Verzeichnisse anlegen und Rechte setzen
[root@crmsrv /]# mkdir /var/www/crm/mailtmp [root@crmsrv /]# mkdir /var/www/crm/config [root@crmsrv /]# mkdir -p /data/crm [root@crmsrv /]# chown -R apache.apache /var/www/crm [root@crmsrv /]# chmod -R 0700 /var/www/crm [root@crmsrv /]# chown -R apache.apache /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}' | replace ':' ''
Lizenzschlüssel bestellen
Lizenzschlüssel einspielen
[user@workstation:~$] scp Downloads/licence.key root@192.168.150.182:/var/www/crm/config/licence.key
CRM-Setup ausführen
URL: http://192.168.150.182/setup/ im Browser aufrufen.
Ins CRM einloggen
Rufen Sie die URL http://192.168.150.182 (IP Ihres Servers) in Ihrem Browser auf:















