Few years ago after several critical storage catastrophes (that fortunately ended with no data lost) I’ve decides to move my most important files to the cloud (mainly my and my family photos)
After checking several cloud storage providers I’ve decided on Google (back then I think drive was non existent or at beta) to backup all my pictures to Picasa.
The plan was very good: Legacy Plan 80G for 20$ a year – for something with the features of the drive and more this price is very good.
After Google Drive was working on my desktop I’ve deserted Picasa as my photos backup and just save the directory to my Google Drive (I like to sort things my own way).
A few days ago I’ve added bunch of files to my drive and got an error: The space almost run out!
I was puzzled why no storage available – my drive isn’t 80G nor my mail or Picasa should be large enough.
Continue reading Google Drive – Where all my free space gone?
Although large amount of alternative web servers a lot of the web services out there still use Apache httpd software.
I will not go into why choose Apache httpd and how, but I like to share a small issue I had with configuration check of my service.
As IT personnel who worked in a production environment I’ve learned the best practice of any configuration change is check your configuration before reloading/restarting the service.
Now Apache httpd configuration check is easy:
# apachectrl configtest
---- or ----
# apachectrl -t
Now – What about when you have multiple apache httpd instances running on the same server?
Every one of them running with it’s own configuration file.
How would you test them?
The solution should have been simple enough – just direct the check for the configuration file!
The issue with that is the relative selection of file won’t work.
Lets see a small example:
---- Following test will result in checking of /etc/httpd/conf/httpd.conf instead of what you wanted ----
/etc/httpd-site/# apachectrl -t -f conf/httpd.conf
---- Following test will fail because he is looking for /etc/http/../conf/httpd.conf ----
/etc/httpd-site/conf.d/# apachectrl -t -f ../conf/httpd.conf
httpd: Could not open configuration file /etc/conf/httpd.conf: No such file or directory
So how can you fix that?
---- Use full path ----
/etc/httpd-site/# apachectrl -t -f /etc/httpd-site/conf/httpd.conf
---- Set the work dir for the relative search ----
/etc/httpd-site/# apachectrl -t -d /etc/httpd-site -f conf/httpd.conf
Easy and simple.