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

  • 3 months ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 3 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 3 months ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 3 months ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 3 months 1 week ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

  • 1 month 3 weeks ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

    Drupal 10.4:

  • 4 months ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 5 months 2 weeks ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf