Sunteți pe pagina 1din 5

Instalare server cu Cpanel

De la HostWiki

Salt la: Navigare, căutare


Cuprins
[ascunde]
 1 Configurare server
o 1.1 Partitionare
 2 Configurare Cpanel
 3 Configurari aditionale
o 3.1 Conectare ssh
o 3.2 Adaugare in nagios la host-uri
o 3.3 Configurare nrpe (link nrpe)
o 3.4 Configurare SNMP
o 3.5 Configurare consola

o 3.6 Editare zona dns


[editează]

Configurare server
[editează]

Partitionare

 / 1GB
 /tmp 2Gb
 /usr 10Gb
 /var 10Gb
 /home restul hdd-ului
 swap 2Gb

Instalat server minimal fara nici un pachet in plus.

[editează]

Configurare Cpanel
 Instalare aplicatii cu yum install app
o mc
o screen
 Rulare screen
 Instalare cpanel
o cd /home
o wget http://layer1.cpanel.net/latest
o sh latest
o ctrl + a + d (se iese din screen)
 Obtinere licenta -> Stefan (optional)
 Wizard
o
 Configurare Cpanel
o accesare WHM prin https://ip:2087/ user:root pass: (parola_de_root...)
o Configurare Basic
o Server Contact E-Mail Address: servers@hostway.ro
o Default cPanel Theme x
o Default Home Directory /home
o Main Shared Virtual Host IP: ip host
o Hostname : -> verificare in lista de ip-uri si alegere un ipliber
o Edit DNS Zone pe serverul de la whois hostway.ro
o Adaug pt hostway nsx in A ip (2 ns-uri libere -verificare in lista de ip-uri)
o Domain Time To Live 14400
o Nameserver Time To Live 86400
o CGI Script Alias y
o Apache Access Log Style combined
 Change root password
 Time zone Bucharest/Eu
 Tweak Settings
o number 50
o Allow Creation of Parked/Addon Domains that resolve to other servers
o Allow Creation of Parked/Addon Domains that are not registered
o Prevent users from parking/adding on common internet domains. (ie
hotmail.com, aol.com)
o blackhole
o Email users when they have reached 80% of their bandwidth
o Include a list of Pop before SMTP senders in the X-PopBeforeSMTP
header when relaying mail.
o BoxTrapper Spam Trap disable
o Horde Webmail
o Mailman - debifat
o SpamAssassin Spam Filter
o SpamAssassin Spam Box delivery for messages marked as spam (user
configurable)
o SquirrelMail Webmail
o Add the mail. prefix for mailman urls (ie
http://mail.domain.com/mailman)
o MySQL 4.1
o Mail Box Usage Warnings
o Disk Space Usage Warnings
o awstats bifat amandoua debifeaza restul (awstats reverse si awstats stats
bifat, analog stats si webalizer stats debifat)
o Allow users to update Awstats from cPanel
o Delete each domain's access logs after stats run
o The load average above the number of cpus at which logs file processing
should be suspended (default 0):100
o Do not include password in the raw log download link in cPanel (via ftp).
o When viewing bandwidth usage in WHM, always display in Megabytes
first.
o Allow Sharing Nameserver Ips
o Display Errors in cPanel instead of logging them to
/usr/local/cpanel/logs/error_log
o Allow cPanel users to reset their password via email
 Update Config
o Manual Updates Only (peste tot)
 Hostname ( de verificat daca s-a inregistrat corect)
 Tweak Security
o php open_basedir Protection
o Enable php open_basedir Protection.
o mod_userdir Protection
o Enable mod_userdir Protection.
 Change System Mail Preferences
o root's, nobody, cpanel mail servers@hostway.ro
 Contact Manager
o Alert Priority Asessment -> all 3's
 Service Manager
o debifat entropy, melange
o bifat monitor exim, ftp, http, imap, mysql, pop
 Addon Modules pro, spamdconf, clamavconnector, modsecurity bifate
 Install cPAddon Scripts toate bifate;;;
 Apache Update
o bifat Gzip Module (experimental)
o php4 ultima vers
o curl amandoua, gd, imap, openssl, postgre optional, freetype, zip

[editează]

Configurari aditionale
in EXIM Configuration EDITOR trebuie debifata optiunea Use callouts to verify the
existence of email senders

[editează]
Conectare ssh

 Apache

de modificat in httpd.conf KeepAlive Off

 Scp
o mkdir -p /kit pe serverul nou instalat
o de copiat fisierul new_server_kit din 193.223.101.160 dir /kit pe serverul
nou creat in acelasi dir /kit prin scp

scp /kit/new_server_kit/new_server_kit.tar root@ip:/kit/new_server_kit.tar

 APF -> ./install.sh


 SIM -> ./setup -q
 SPRI -> ./install.sh
 mytop .> perl Makefile.PL; make; make install

conf -> /kit/new_server_kit/conf/apf/* se copiaza in /etc/apf/*; /usr/local/sim/conf.sim;


/usr/local/spri; /usr/local/apache/conf/modsec; /usr/local/lib/php.ini ; /etc/my.cnf

 eaccelerator

muta dir in /usr/local/eaccelerator

export PHP_PREFIX="/usr"; $PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-


config

make;

make install

se editeaza /usr/local/lib/php.ini unde se se introduc urmatoarele linii deasupra la


Windows Extensions:

zend_extension="/usr/local/eaccelerator/modules/eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

mkdir /tmp/eaccelerator; chmod 777 /tmp/eaccelerator

 gzip | gzip

[editează]

Adaugare in nagios la host-uri

 Se modifica fisierul /usr/local/nagios/etc/minimal.cfg


 In acest fisier se creaza un host care se adauga la hostgroup-ul Hostway Servers
 Se executa comanda service nagios restart

[editează]

Configurare nrpe (link nrpe)

[editează]

Configurare SNMP

[editează]

Configurare consola

[editează]

Editare zona dns

Adaugare in dns zone-ul de pe 160 sa sa pointeze catre ip-ul respectiv

 pt resetare license key /usr/local/cpanel/cpkeyclt

S-ar putea să vă placă și