-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathConfigure Server Setup
140 lines (119 loc) · 4.36 KB
/
Configure Server Setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
=========================================================================================
Configure Server
=========================================================================================
Configure VPS (Cents os) :-
===========================
Firewall installation in shell:-
================================
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
-----------------------------
ConfigServer Mail Queues:-
==========================
To install or upgrade cmq simply do the following from the root shell via SSH:
cd /usr/src
rm -fv /usr/src/cmq.tgz
wget http://download.configserver.com/cmq.tgz
tar -xzf cmq.tgz
cd cmq
sh install.sh
rm -Rfv /usr/src/cmq*
Then login to WHM and scroll to the bottom of the left hand menu and you should see "ConfigServer Mail Queues"
If you want to uninstall, simply:-
==================================
cd /usr/src
rm -fv /usr/src/cmq.tgz
wget http://download.configserver.com/cmq.tgz
tar -xzf cmq.tgz
cd cmq
sh uninstall.sh
rm -Rfv /usr/src/cmq*
-----------------------------
Maldet installation:-
=====================
cd /usr/local/src/
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzf maldetect-current.tar.gz
cd maldetect-*
sh ./install.sh or sudo sh ./install.sh
maldet -d && maldet -u
-----------------------------
How to Update CURL with CPanel on CentOS:-
==========================================
root@server1 [/usr/local/src]# /usr/bin/curl -V
root@server1 [~]# cd /usr/local/src/
root@server1 [/usr/local/src]#tar -xvf c-ares-1.10.0.tar.gz
root@server1 [/usr/local/src]# wget http://curl.haxx.se/download/curl-7.46.0.tar.gz
root@server1 [/usr/local/src]#tar -xvf curl-7.46.0.tar.gz
root@server1 [/usr/local/src/c-ares-1.10.0]# ./configure
root@server1 [/usr/local/src/c-ares-1.10.0]# make or make all-am or (refer this)--> <make && make install>
root@server1 [/usr/local/src/c-ares-1.10.0]# make install
root@server1 [/usr/local/src/curl-7.46.0]# ./configure --enable-ares=/usr/local/src/c-ares-1.10.0 --enable-http --enable-imap --enable-pop3 --enable-ftp --enable-proxy --enable-tftp --enable-ntlm --enable-static --with-ssl=/usr/local/ssl --enable-ipv6 --enable-shared --disable-ldap --enable-gobher --enable-smtp --with-libidn --disable-rtsp --without-zlib
root@server1 [/usr/local/src/curl-7.46.0]#make
root@server1 [/usr/local/src/curl-7.46.0]# make install
root@server1 [~]# curl-config --version
==========================================================================================
libcurl:-
=========
rpm -Uvh http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
or
vim /etc/yum.repos.d/city-fan.repo --->
[CityFan]
name=City Fan Repo
baseurl=http://nervion.us.es/city-fan/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0
:wq
yum clean all
yum install libcurl
-----------------------------
To install or upgrade cmm simply do the following from the root shell via SSH:-
===============================================================================
cd /usr/src
rm -fv /usr/src/cmm.tgz
wget http://download.configserver.com/cmm.tgz
tar -xzf cmm.tgz
cd cmm
sh install.sh
rm -Rfv /usr/src/cmm*
Then login to WHM and scroll to the bottom of the left hand menu and you should see "ConfigServer Mail Manage"
-----------------------------
If you want to uninstall, simply:-
==================================
cd /usr/src
rm -fv /usr/src/cmm.tgz
wget http://download.configserver.com/cmm.tgz
tar -xzf cmm.tgz
cd cmm
sh uninstall.sh
rm -Rfv /usr/src/cmm*
-----------------------------
To Install chkrootkit & rkhunter:-
==================================
http://www.chkrootkit.org/download/
http://sourceforge.net/projects/rkhunter/
cd /usr/local/src/
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
tar zxvf chkrootkit.tar.gz
cd chkrootkit-0.49/
./chkrootkit
To do a scan:-
/usr/local/chkrootkit/chkrootkit
You can add a cron entry for running chkrootkit automatically and send a scan report to your mail address.
Create and add the following entries to “/etc/cron.daily/chkrootkit.sh”
-------+
#!/bin/sh
(
/usr/local/chkrootkit/chkrootkit
) | /bin/mail -s 'CHROOTKIT Daily Run (ServerName)' [email protected]
-------+
cd ..
wget http://sourceforge.net/projects/rkhunter/files/rkhunter/1.3.8/rkhunter-1.3.8.tar.gz/download
tar zxvf rkhunter-1.3.8.tar.gz
cd rkhunter-1.3.8
./installer.sh --install
rkhunter --check