This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "ESTE SCRIPT IRÁ INSTALAR O LAMP STACK NESTA MÁQUINA." | |
echo "Atualizando pacotes..." | |
sudo apt update -y && sudo apt upgrade -y | |
echo "Instalando Apache, MySQL, PHP e dependências..." | |
sudo apt install -y apache2 mysql-server php libapache2-mod-php php-mysql ufw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Disable rsyslog (system log) | |
echo "Disabling rsyslog..." | |
systemctl stop rsyslog | |
systemctl disable rsyslog | |
# Disable journald (persistent logs) | |
echo "Disabling persistent logging for journald..." | |
sed -i 's/^#\?Storage=.*/Storage=none/' /etc/systemd/journald.conf |