Upload File via FTP on shell

To upload a file on the shell via FTP (https://en.wikipedia.org/wiki/File_Transfer_Protocol) you can use the wput command. Therefor you have to install it with your systems package manager (aptitude in this example):

Now you can upload files like that:

Attention: The target path have to be relative to the FTP-users home directory! You will get […]

Translation files for custom modules

To register a translation file for your module:

As you can see, you can use the same file for frontend and backend.

Find out where my.cnf is located

To find out where the MySQL configuration (my.cnf) is stored, you can use the strace command:

You will get an output showing all the paths the MySQL deamon searches for the my.cnf upon startup like that:

As you can see, the service searches the following files: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf /home/sheldon/.my.cnf But only the /etc/mysql/my.cnf is found […]