Get file encoding via Linux shell

To find out which encoding a certain file has, you can use the file command on Linux shell:

Output example:


wordpress cron: using wp_mail function

Today I had to solve the problem, that my wordpress cron throws an exception like this when sending an email via wp_mail function inside a cron scheduled event function.

The wordpress cron was registered like that:

And the wordpress cron mechanism was triggered via Linux crontab:

Problem with wp_mail in wordpress cron […]

Homefolder permissions bug ISPConfig

Today I ran into a still open bug of ISPConfig (ISPConfig 3.1.3 under Debian Jessie). The problem occurred, when I tried to clone a BitBucket repository with a non root SSH-user in his own website root (where permission rights generally should be no problem). Hence I wanted to use key-based authentication for BitBucket, I generated […] DDNS for Synology NAS

Recently I had to setup DDNS for my parents DS212+ DiskStation from Synology. I have an hosting package including a dynamic DNS feature (DDNS under tools): The problem was to get the right settings for the Synology box. Solution for the DDNS problem I found the solution in this blog article: I saved […]

Delete x files from folder in a for i loop

Recently I tried to remove a big bunch of files from one of my raspberry pies where ffmpeg had swamped my SD-card with too many capture images. So I had to delete x files from folder. I just tried:

But that gave me an “unable to execute /bin/rm: Argument list too long” error message. […]

Mount FTP on Synology Boxes

Today I had the challenge to find a way to download a backup from my hosting root server via FTP directly to my Synology DS212+. Here is how I got it done with the given toolset of the Synology DSM 6.1.1-15101. (How to mount FTP on Synology Boxes) Oben Synology Backend and open the File Station […]

Setup monit behind Apache proxy under ISPConfig

Today I wanted to setup monit behind Apache proxy on my webserver, which runs ISPConfig ( under Debian. Monit is a OpenSource monitoring tool for Linux (see Requirements I had the following requirements on the solution: monit should only be accessible from the server itself (localhost) monit should run under a special SSL-secured URL (not IP:PORT as […]