How to solve: Lynis Warning

Q: PHP option expose_php is possibly turned on, which can reveal useful information for attackers. [test:PHP-2372] A: If you use Debian, follow this step:

sudo locate php.ini
sudo sed -i 's/expose_php\ \=\ On/expose_php\ \=\ Off/g' /etc/php/7.0/apache2/php.ini

Q: Found one or more vulnerable packages. [test:PKGS-7392] A: If you use Debian, follow this step:

sudo apt update && sudo apt upgrade -y && sudo autoremove

Q: Couldn't find 2 responsive nameservers [test:NETW-2705] A: If you use Debian, follow this step:

sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf &&
sudo echo "nameserver 8.8.4.4" >> /etc/resolv.conf

Q: iptables module(s) loaded, but no rules active [test:FIRE-4512] A: - https://serverfault.com/questions/246829/is-it-enough-adding-iptables-rules-without-restart

Q: Found some information disclosure in SMTP banner (OS or software name) [test:MAIL-8818] A: -

Q: Found one or more problems in the package database [test:PKGS-7384] A: -

Q: Current SELinux mode is different from config file (current: permissive, config file: disabled) [test:MACF-6234] A: - https://access.redhat.com/discussions/1161323

results matching ""

    No results matching ""