#!/bin/bash clear echo "" echo "" echo "# This script will configure your Centos 7 server and install the DropCatch Web GUI" echo "# Put this script in your //root folder" echo "# Rename to stack-web.sh (if its different)" echo "# Make it executable with chmod +x stack-web.sh" echo "# Run it with ./stack-web.sh" echo "# For manual installation the repository is https://transcom.net/dac/" echo "" echo "" read -r -p "Are you sure? [y/N] " response if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]] then echo "" echo "" echo "hold on............" else exit 0 fi echo "" echo "" cd //root yum -y update yum -y install epel-release yum-utils yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-config-manager --enable remi-php74 yum -y install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd yum -y install unzip zip wget nano yum -y install httpd firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload systemctl enable httpd systemctl start httpd sed -i 's/AllowOverride None/AllowOverride All/' //etc/httpd/conf/httpd.conf cd //var/www/html wget https://transcom.net/dac/web-13.1.2-FULL.zip unzip -o web-13.1.2-FULL.zip cp //var/www/html/uploads/.htaccess //var/www/html cd //etc echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> sysctl.conf echo 'net.ipv6.conf.default.disable_ipv6 = 1' >> sysctl.conf sysctl -p cd //root echo "* Creating crontab for log control" crontab -l; (echo "0 5 * * * find /var/log/*/* -mtime +5 -exec rm -f {} \;") | crontab - echo "" cd //var/www/html clear echo "" echo "" echo " ------------Centos 7 Server Web GUI Configuration Complete------------" echo "" echo "* Upload your key in the interface" echo "* [ You can get a key from https://transcom.net/store/dac-epp-dropcatch-software ]" echo "• Enter the server IP into your Nominet EPP account (wait an hour minimum before active)" echo "• Enter the server IP into your DAC settings with Nominet (£25 + vat per year from Nominet)" echo "* Read the README.TXT file in the //root directory for default user / pass" echo "" echo "* Visit http:// or http://.transcom.net to start" echo "* Verify the connection with the TEST Button"