Debian – Ubuntu – PHP Version ändern

Möchte man auf eine ältere verfügbare PHP Version zurück, weil irgendeine PHP Applikation nicht vernünftig läuft, wähle man mit „update-alternatives“ die alternative Version aus und starte die betreffenden Dienste neu:

update-alternatives --config php
update-alternatives --config php-cgi
service php7.0-fpm restart
service apache2 restart

OpenPLi – Crash nach Updates / Upgrade

Stürzt das System nach Updates oder einem Versionsupgrade ab hilft bisweilen folgendes:

init 4
opkg update
for f in `opkg list-installed`; do if [ "$f" != "-" -a "`echo $f | grep -c "^[0-9].*"`" -eq 0 ]; then opkg install $f --force-reinstall; fi; done
reboot

Sophos UTM – SMTP / POP3 Proxy startet nicht

Startet der SMTP oder POP3 Proxy auf der Sophos UTM nicht, kann ein Neuaufbau der Postgres Datenbank helfen:

/etc/init.d/postgresql92 rebuild

und dann:

psql -Upostgres -c"reindex database smtp;" smtp 
psql -Upostgres -c"reindex database pop3;" pop3 
psql -Ureporting -c"reindex database reporting;" reporting 
psql -Upostgres -c"vacuum;" smtp 
psql -Upostgres -c"vacuum;" pop3 
psql -Ureporting -c"vacuum;" reporting