Balboa Park

by Chris on April 25, 2012

Took a trip to San Diego today while vacationing in Oceanside and decided to do some museum gazing on Balboa Park.

 

{ 0 comments }

Apache2 vhost combined log files

by Chris on April 10, 2012

Recently I’ve been fighting with memory consumption on my server and have been looking for ways that I can reduce the overall load. After some research I found that Apache opens up a file descriptor for each VHosts log file, and keeps this descriptor open all the time. So when I had a bunch of sites that I didn’t mind if their log files were combined, I did some work.

I verified that first, my /etc/apache2/apache2.conf file had a CustomLog entry for vhost_combined:

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

Once this was confirmed I went into each of the config files in the sites-available directory and modified a single line:

CustomLog /var/log/apache2/groupofsites-access.log vhost_combined

Notice that I added that ‘vhost_combined’ to the end of this line, meaning that it will use the log format from above and for each vhost assigned to use this log file, only keep 1 file descriptor open instead of 6.

So far I’ve actually noticed a quicker response from my webserver as well as lower memory usage. Hopefully this helps you out as well!

{ 0 comments }

Vacation in Sedona

February 14, 2012
Read the full article →

The Conversion is complete

January 27, 2012

If you were visiting this blog to get some Linux How To’s and stuff, You’ll find some of those still. However, starting today I’m converting this into my personal blog. I’m a PHP Software Developer who has stuff to talk about apparently. I’ll be blogging personally here from now on, but in my world, personally [...]

Read the full article →

Customizing your .vimrc file

July 20, 2011

If you are using Linux and haven’t familiarized yourself with the world of VIM yet…then you need to rethink your text editing habits. Alright, so that’s a little harsh, but did you know that with a few changes to your .vimrc file (stored in your home directory) you can mold VIM into a very powerful [...]

Read the full article →

Chunkhost Review: ChunkHost VPS – Hosting Review

July 20, 2011

I’m not one to typically click on advertisements on social media sites, but when the ad told me I could get a ‘Free 512MB VPS during beta period‘…I instinctively clicked on that link. Let’s fact it, you want to give me a free server for a short time, I’m your guy. I moved a few [...]

Read the full article →

Mapping Command Key to Control in Linux

July 10, 2011

I’ve mentioned it before, but I used to be a Mac OS X user for about 10 years. When I switched over to Linux, I did so on my Apple hardware. There are a few things that I just could not get used to when it came to configuration. One of those things was, the [...]

Read the full article →

Connecting to SSH without a Password

July 9, 2011

When dealing with Linux servers, the preferred mode of connection is via SSH. The Secure Shell is one that allows for an encrypted connection between you and the remote server. As often as I connect to these boxes, I am always looking for a way to speed up tasks that I will do more than [...]

Read the full article →

Using Find and Grep to search your code base

July 7, 2011

Let’s face it, when you are in the middle of developing your most recent genius idea, there are times you just need to find every instance of a function being used. For this, we can revert to the ‘find’ and ‘grep’ commands to narrow things down a bit. First, a little bit about the tools [...]

Read the full article →

Check Linux Version from Command Line

July 6, 2011

When you are running a command line only version of Linux, on a server for instance, keeping up to date can fall to the wayside in your daily use as there is no nagging icon to tell you there are updates. One of the most useful directories you can peek around in is the ‘/proc’ [...]

Read the full article →