Posted in 2016

Connecting to MySQL without password prompt

If you are (like me) annoyed by providing password at every mysql login, you can skip it. Also it makes easier programmatic access to any MySQL db, as not passwd prompting is necessary :)

Create ~/.my.cnf file:

And login without -p parameter:

Read more ...

Apache2 reading from sshfs share

Today, I have encountered problems trying to read data from sshfs share in apache2. I was getting 403 Forbidden error. It turned out you need to enable other_user in sshfs, so other users than the one mounting the share can access the data, as apache2 is using www-data user.

Inspired by serverfault and unix.stackexchange.

Read more ...