Some Linux web servers are browsable by direct IP. This can be disabled for security purposes.
- Create custom Apache main defaults template
$ curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
$ sudo yum update
$ sudo ACCEPT_EULA=Y yum install -y msodbcsql mssql-tools unixODBC-devel
# Sourced from https://www.reddit.com/r/pihole/comments/92u4ax/pandora_radio_ads_block/ | |
t1-1.p-cdn.us | |
t2-1.p-cdn.us | |
t2-5.p-cdn.us | |
t1-3.p-cdn.us | |
t2-2.p-cdn.us | |
t2-4.p-cdn.us | |
t1-2.p-cdn.us | |
t2-3.p-cdn.us | |
t1-4.p-cdn.us |
Mirror the current configuration files on the server to the backup folder in order to make remote backups of the system configuration. See this link for source of backup folders and files.
# mkdir -p /backup/config/etc/cpanel/ea4
# mkdir -p /backup/config/etc/csf
#!/bin/bash | |
# set mysql into innodb recovery mode on startup | |
mode=1; sed -i "/^\[mysqld\]/{N;s/$/\ninnodb_force_recovery=$mode/}" /etc/my.cnf | |
# restart mysql | |
systemctl restart mysqld | |
# remove recovery mode setting | |
sed -i '/innodb_force_recovery/d' /etc/my.cnf |