Tagging-Archive: debian


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 […]


sync mails with dovecot over tcp 7

I use on my servers ISPConfig, for IMAP and POP3 Dovecot is used. With Dovecot 2.x, the mails can also keep in sync between two servers. The replication is done via the Dovecot index files. So neither an error in the file system nor an accidentally deleted Maildir have a […]


restore the debian-sys-maint MySQL user

If you’ve accidentally deleted the debian-sys-maint user, you can easily re-create the user. The password is stored in /etc/mysql/debian.cnf: # Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = debian-sys-maint password = TOP-SECRET socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user = debian-sys-maint password = […]


problems upgrading to mysql 5.5.33 on debian wheezy 1

I had a few problems with the update of the MySQL server from 5.5.31 to 5.5.33. apt-get upgrade only led to Error: Sub-process /usr/bin/dpkg returned an error code (1). For me it has helped to enter the full path for log-bin in /etc/mysql/my.cnf and .to set innodb_data_home_dir. I changed log-bin […]


change document root of mod_suexec

In mod_suexec, ‘document_root’ can not be changed because it is compiled directly. To change the default path of debian (/ var / www), you must either re-compile mod_suexec or even use the suexec-custom package. apt-get install apache2-suexec-custom After that, the directory can be changed in / etc/apache2/suexec/www-data: /srv/www public_html/php-fcgi # […]