Kategoriearchive: Debian


PHP 7 with imagick 2

I intalled PHP 7 als as and additional PHP-Version using https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ installiert. To use PHP7 on Debian Jessie with imagick: apt-get install libmagickwand-dev libmagickcore-dev cd /opt/php-7.1/etc pecl -C ./pear.conf install imagick echo extension=imagick.so >> ../lib/php.ini


[ERROR] Error in accept: Too many open files 1

With some versions of MariaDB, the server could stop responding to sql queries. service mysql status shows mysql[413]: ERROR 23 (HY000) at line 1: Out of resources when opening file ‘./…’ (Errcode: 24 “Too many open files”) [ERROR] Error in accept: Too many open files To adjust the limits of […]


The following packages have unmet dependencies

Sometimes an installation fails due to inappropriate dependencies. This is usually due to additional repos. This can be remedied by downgrading the not matching packet. As an example here the output of apt-get install openssl-dev: libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u5) but 1.0.2j-1~bpo8+1 is to be installed Recommends: libssl-doc but […]


force apt-get to use ipv4

Debian / Ubuntu prefer to use IPv6 DNS Records. This leads to problems if the server supports only IPv4. The problem can easily solved. We only need to change the config for getaddrinfo(). Open /etc/gai.conf and change #precedence ::ffff:0:0/96 100 to precedence ::ffff:0:0/96 100 For me it was line 54.


versioning etc directory with etckeeper 2

The configuration directory / etc should be versioned for documentary reasons and for backup. All changes are visible at a glance and a previous state can be restored easily. In / etc are also security-related information. Therefore, care should be taken when transferring and backup the repository on encrypting and […]


Use mollyguard to prevent rebooting the wrong server

Mollyguard detects if you are logged in using ssh when you try to reboot or shutdown (unfortunatly init 6 works) a server. In this case you have to enter the hostname to proceed with the shutdown. The installation is quite simple. Just use apt-get install mollyguard Afterwards you will be […]