-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisp4_centos6-64_install.sh
56 lines (54 loc) · 2.37 KB
/
isp4_centos6-64_install.sh
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
#!/bin/sh
echo 'Installing...'
sed -i 's/SELinux=enforcing/SELinux=disabled/g' /etc/sysconfig/selinux
yum update -y
mkdir /usr/local/ispmgr
wget http://ru.download.ispsystem.com/Linux-cc6/x86_64/ISPmanager-Lite/install.stable.tgz
tar zxvf install.stable.tgz -C /usr/local/ispmgr
rm -f install.stable.tgz
ip=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
curl http://lic.ispsystem.com/ispmgr.lic?ip=$ip > /usr/local/ispmgr/etc/ispmgr.lic
wget -P /root/ http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh /root/epel-release-6-8.noarch.rpm
echo "Option Agree" >> /usr/local/ispmgr/etc/ispmgr.conf
echo "FSEncoding UTF-8" >>/usr/local/ispmgr/etc/ispmgr.conf
echo "path quota /" >> /usr/local/ispmgr/etc/ispmgr.conf
/usr/local/ispmgr/sbin/pkgctl -D cache
/usr/local/ispmgr/sbin/pkgctl install cron
/usr/local/ispmgr/sbin/pkgctl install apache
/usr/local/ispmgr/sbin/pkgctl install nginx
/usr/local/ispmgr/sbin/pkgctl install php
/usr/local/ispmgr/sbin/pkgctl install fcgi
/usr/local/ispmgr/sbin/pkgctl install ftp
/usr/local/ispmgr/sbin/pkgctl install mysql
/usr/local/ispmgr/sbin/pkgctl install myadmin
/usr/local/ispmgr/sbin/pkgctl install lda
/usr/local/ispmgr/sbin/pkgctl install pop3
/usr/local/ispmgr/sbin/pkgctl install smtp exim
/usr/local/ispmgr/sbin/pkgctl install dns
/usr/local/ispmgr/sbin/pkgctl install webmail
/usr/local/ispmgr/sbin/pkgctl install quota
/usr/local/ispmgr/sbin/pkgctl install fw
/usr/local/ispmgr/sbin/pkgctl activate cron
/usr/local/ispmgr/sbin/pkgctl activate apache
/usr/local/ispmgr/sbin/pkgctl activate nginx
/usr/local/ispmgr/sbin/pkgctl activate php
/usr/local/ispmgr/sbin/pkgctl activate fcgi
/usr/local/ispmgr/sbin/pkgctl activate ftp
/usr/local/ispmgr/sbin/pkgctl activate mysql
/usr/local/ispmgr/sbin/pkgctl activate myadmin
/usr/local/ispmgr/sbin/pkgctl activate pop3
/usr/local/ispmgr/sbin/pkgctl activate lda
/usr/local/ispmgr/sbin/pkgctl activate smtp exim
/usr/local/ispmgr/sbin/pkgctl activate dns
/usr/local/ispmgr/sbin/pkgctl activate webmail
/usr/local/ispmgr/sbin/pkgctl activate quota
/usr/local/ispmgr/sbin/pkgctl activate fw
/usr/local/ispmgr/sbin/pkgctl -D cache
/usr/bin/killall -9 ispmgr
/sbin/iptables -F
/usr/local/ispmgr/sbin/ihttpd $ip 1500
yum install ntp unzip git vim nano screen vnstat htop php-gd php-mcrypt php-curl php-soap php-bcmath -y
service ntpd start
service httpd restart
reboot