-
Notifications
You must be signed in to change notification settings - Fork 1
edwardsmarkf/server-migration
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#### 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
About
marks server migration
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published