Scroll to top

bash script useful tips

I’ve spent last 2 days scripting virtual server deployment on Amazon cloud. For my reference, these are some useful commands I had to use to get the job done. 1. Hash “Hello World” string using SHA256 algorithm echo -n “Hello World” | shasum -a 256 You can also hash a file shasum -a 256 myfile.ext [...]

Read more

apr_sockaddr_info_get() failed for mydomain.com

I recently changed my ISP from Optus to TPG and when I tried to start my local apache instance and I got this error httpd: apr_sockaddr_info_get() failed for 192-168-1-107.tpgi.com.au httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName That gave me a hint that my local hostname had changed. [...]

Read more