Today I was configuring a server running Postgres, Ruby, & Litespeed. It is a fairly easy setup that I run on numerous servers and it simply takes time to go through the motions to get everything up and running. There are a ton of steps so its highly likely that I miss one along the way. Today everything went smooth except for in one of the last steps where I start configuring virtual hosts in Litespeed I received an error. The error was stating that the path I was entering into the virtual host configuration did not exist. The error and the resolution are explained in detail below.
I needed to clean up a directory on a server that included numerous directories each with numerous files inside each directory. I decided to write a quick shell script that would archive with tar and then compress with bzip2. The shell script requires you pass in a variable which could technically just be “*” to include all directories in the directory you are running the script from. Below is the content of the script followed by an explanation of each line of the script that will archive and compress numerous directories by looping through each directory to create a .tar.bzip2 file.
On a recent installation of PostgreSQL on CentOS Linux I had some issues after making some configuration changes. I have a basic template of changes I make to Postgres after initial installation and then I restart the PostgreSQL server. This time when restarting Postgres it failed as shown below.
Question Defense uses the WPtouch iPhone Theme WordPress plugin for displaying the site in a user friendly format for mobile devices. This plugin is by far the best mobile theme I have used to date. Not only is it actively developed and constantly improving but it has an amazing admin page for customizing the mobile theme in many ways. I highly suggest this plugin for anyone with WordPress installed.
I have multiple sites I manage that run WordPress so I try to stay up to date on all of them. If you stay on op of upgrading WordPress then most of the updates are fairly easy and don’t require changing that many files. Instead of uploading the entire set of files again it is easiest to simply upload the modified files. This will allow you to not have to make all of your custom modifications again if you have made customizations to any core WordPress files. Customizing core WordPress files is something I try to stay away from but there are definitely situations where I have modified core files to accomplish various goals. Anyhow since I haven’t found a site that keeps a consistant list of changed WordPress files I am going to try to start providing a list for each upgrade on Question Defense from now on.