stop zabbix services
change apt soutrces from stretch to buster
apt update
apt install –only-upgrade ‘zabbix.*’
apt install –only-upgrade ‘zabbix-server.*’
apt install –only-upgrade ‘zabbix-agent.*’
apt upgrade
apt full-upgrade
reboot
apt –purge autoremove
start zabbix services (during the new start of services the database will be updated)
Archivi quotidiani per Gennaio 6th, 2020
Zabbix 3.0 to 4.0 Upgrade during Debian 9 to 10 Ugrade
Send Mail with PHPMailer as debian 10 meta-package
install on the debian server the following package:
apt-get install libphp-phpmailer
and use it as in the example below:
require("/usr/share/php/libphp-phpmailer/autoload.php"); $mail = new PHPMailer\PHPMailer\PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = false; $mail->SMTPSecure = false; $mail->SMTPAutoTLS = false; $mail->Host = ""; $mail->Port = 25; $mail->IsHTML(true); $mail->SetFrom("from@mydomain.tld"); $mail->Subject = "my subject"; $mail->Body = "my body"; $mail->AddAddress("to@anotherdomain.tld"); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message has been sent"; }
Recent Comments