Debian

Damit man GEOIP-PECL auf Debian zum laufen bringt:

  1. apt-get install geoip-bin geoip-database libgeoip-dev

     
  2. pecl install geoip

     
  3. Eintrag in php.ini: extension=geoip.so

Danach Apache neu starten oder Konfigurationsdatei neu laden.

<?php

echo geoip_country_code_by_name (  $ip );

// Ausgabe sollte zweistellige Ländercode wie DE oder ähnliches sein.

?>

Auftrag:

Backups von .php .tpl .inc .css .js .txt usw Text-Dateien erstellen. Dabei zu achten:

  1. Nur Dateien die in der letzten 30 Tagen erstellt oder geändert wurden
  2. Bestimmte Bild/Video/Musik/Log Dateien, die viel Platz benötigen ignorieren.

Lösung

tar -zcvf MeineWebseite.tar.gz /home/MeineWebseite/public_html/ --newer-mtime='30 days ago' --exclude=\*.{mp3,mp4,jpg,jpeg,png,gif,log}

Daten herunterladen

cd /usr/local/src/ wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz tar -zxvf apf-current.tar.gz; cd apf-*

Installieren

sh ./install.sh

Danach kommen ein paar fehlermeldungen, die man ignoerieren kann.

Installing APF 9.7-2: /etc/apf/vnet/vnetgen: 24: /etc/apf/vnet/vnetgen: source: not found

/etc/apf/vnet/vnetgen: 30: [: unexpected operator

vnetgen.def not found, aborting.

Completed.

Guten Abend, beim Server installation bekomme ich folgende fehlermeldung von Webmin. Kann mir jemand helfen? Danke!

Warning! Webmin has detected that the program https://123.456.789.123:10000/right.cgi?open=system&open=status was linked to from an unknown URL, which appears to be outside the Webmin server. This may be an attempt to trick your server into executing a dangerous command.

If your browser does not send the Referer header needed, you can turn off this check as follows :

Hey Leute, auf einem lustigem Comic gestoßen. 2008 kam es heraus, dass der Zufallszahlengenerator von Debian-Variante von OpenSSL jede Menge Sicherheitslücken hatte und die Zufallszahlen doch nicht so zufällig waren. Das Problem ist, wenn der Generator nicht gut genug ist und die Zahlen nicht zufällig genug, bringen einige sichere kryptographische Verfahren nichts. Die sind dann leicht knackbar, weil die Zufallszahlen sich eingrenzen lassen. Hier ist ein Bild dazu:)

Suche

Neueste Kommentare

  • 4 weeks 1 day ago
    How to Renew Let’s Encrypt SSL Certificate on Plesk via Ubuntu Shell

    Let’s Encrypt will only accept a wildcard via DNS challenge. 

    If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success. 

  • 1 month ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 1 month 1 week ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 1 month 2 weeks ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 1 month 4 weeks ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 1 month 3 weeks ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 3 months 2 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem: