-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
219 lines (124 loc) · 5.86 KB
/
README
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
#### initial setup
## 2019-11-13 - ran on centos-7/8 successfully.
00) ffmpeg (can probably be done anytime but TEST first before starting!)
01) bash -vx ./bash-misc/root-init.bsh
02) bash -vx ./bash-misc/dnf-yum.bsh
03) perl/CPAN
04) webmin/virtualmin/csf
05) Mariadb UPGRADE (LET VIRTUALMIN INSTALL PHP, let github install PERL ## do before perl and php)
06) php - may be problematic now that webmin "insists" on installing its own favorite php.
07) /php/phpImageMagick.bsh
09) clamav
20) ./bash-misc/mailx-postfix.bsh
40) bash -vx ./node/bash-js.bsh ;
50) crontab-reboot-commands
60) fail2ban-client --version ; # make sure faile2ban-client is installed! Fail2Ban v0.11.2 at of 2012-07-22
70) install ./bash-misc/certbot
80) visudo for node processes
90) copy over all crontab jobs
95) bash -vx /node/pm2.bsh ;
100) edit /etc/hostname and include 'edwardsmark.info'
## new 2016-02-28 -- THIS IS COPIED IN WHEN DIRECTORY IS MOVED!
mkdir --verbose /home/comptonpeslonline.com/tmpVoiceSpiceFile/ ;
chmod 755 --verbose /home/comptonpeslonline.com/tmpVoiceSpiceFile/ ;
chown comptonpeslonline.com:comptonpeslonline.com /home/comptonpeslonline.com/tmpVoiceSpiceFile/ ;
## ddos-deflate installation 2016-04-20
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
## wordpress:
1) dont forget to update the wordpress network IP number ! !
2) chmod -R 777 /home/comptonpesltrainers.com/public_html/wp-content/blogs.dir
######### ftp - START OUT WITH A WORKING DOMAIN NAME (2013-07-03)
#####################https://www.digitalocean.com/community/articles/how-to-set-up-proftpd-on-centos-6
moved to sftp.bsh February 2019
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm ;
yum install ftp ;
yum install proftpd ;
hostname edwardsmark.com ;
echo <<END >> /etc/hosts ;
199.231.184.26 server
END
sed -i -e "s/ServerName whatever/ServerName myNewDomainName.com" /etc/proftpd ;
service proftpd restart ;
##mkdir /home/mark ;
useradd mark ;
passwd mark ;
ftp myNewDomainName.com ; ## test login
sftp [email protected] ; ## 2016-02-09- notice sftp since regular ftp may not be an option anymore.
chkconfig dovecot off ; ### disable dovecot from starting
2013-03-01 -- to supress messages from emailing:
echo "/usr/bin/php-cgi" >> /etc/csf/csf.pignore ;
## written from http://configserver.com/free/csf/install.txt
/etc/resolv.conf :
nameserver 66.45.228.250
nameserver 8.8.8.8
nameserver 127.0.0.1
#### https://www.interserver.net/forum/threads/strange-error-message-sending-email-on-kvm275.20548/
# I use
# nameserver 69.10.54.252
# nameserver 66.45.251.218
# nameserver 64.20.34.50
# nameserver 66.45.228.250
# nameserver 1.1.1.1
# nameserver 8.8.8.8
(php pear??? do we need it ???)
==== bcc mail
to always bcc mail: (2014-10-17)
/etc/postfix/main.cf -- add this line:
always_bcc = [email protected]
==== httpd.conf
add this:
AddType audio/ogg .ogg .ogv
AddType audio/speex .spx
systemctl start mariadb; ## replacement for mysql 2015-12-18
below stuff may be obsolete:
## 2014-01-05 added by mark - test to make sure that mysql started, if not, remove
## the sock file and try again
if [ $(/etc/init.d/mysqld status | grep 'mysqld (pid .*) is running' | wc --lines) -gt 0 ];
then
echo 'mysql successfully started -- no action taken';
else
echo $0 'mysql did *NOT* start successfully -- removing the sock and restarting.....';
[ -e /var/lib/mysql/mysql.sock ] && rm /var/lib/mysql/mysql.sock;
/etc/init.d/mysqld start;
/bin/mail -v -r [email protected] -s 'mysql start failure notice' [email protected] <<END
$(/bin/date)
$0 mysql did not start on reboot -- removing sock and trying again
please see /var/log/boot.log file for more details
END
fi;
==== comptonpesltrainers.com mu-wordpress:
change dashboard--->settings--->DomainMapping IP number (not sure if this is totally necessary)
## important misc php archive files:
rsync --verbose --archive --rsh=ssh /usr/local/lib/php/ [email protected]:/usr/local/lib/php/
## dont forget jQuery ! (?)
rsync --verbose --archive --rsh=ssh /usr/local/jquery/ [email protected]:/usr/local/jquery/
=================================
==== (OBSOLETE
ftp auto-login: (2013-05-10)
echo 'machine ftp.adrive.com login [email protected] password JABBERWOLKY' >> ~/.netrc ;
chmod 600 ~/.netrc ;
===
=== two ways to manage dns records ===============
A: using interserver name server
1) log into the my.interserver.net control panel
2) Domains---->DNS-Manager (domains is next to "home" second from left)
3) "Add New DNS Entry" - enter clients domain name and interserver.net ip address 69.10.48.25
4) click on the little wrench on the far right
5) create 5 new mx records
B: using our own customized name server and virtualmin:
1) create ns1/2.XXXX.com subdomains and point "A" records to 69.10.48.25
2) use nameserver from step one for given domain
3) log into virtualmin and select(or create) new virtual-server (new website)
4) ServerConfiguration--->DNS_Records
5) enter 5 new mx records using "Create Record of Type" button at bottom (be sure to select MX)
======== authorized dns ===================
Primary DNS - cdns1.interserver.net 209.159.155.28
Secondary DNS - cdns2.interserver.net 66.45.228.248
OBSOLETE
## flvar admin files - THIS MIGHT NOT WORK PROPERLY......
rsync --verbose --archive --rsh=ssh /usr/share/red5/webapps/ [email protected]:/usr/share/red5/webapps/
==== /etc/init.d/rc.local: (2014-11-02)
mount -a ; ## 2013-05-14 mounts up the stuff in the fstab file
/etc/init.d/red5 start >/usr/share/red5/red5.log 2>&1