Apache

Apache mod_proxy '[error] (13)Permission denied' error on RHEL

Had an interesting issue today working on a mod_proxy setup of Apache forwarding requests in a reverse proxy setup to a backend Tomcat server. No matter what I did, I kept getting this in Apache's error log:

[error] (13)Permission denied: proxy: AJP: attempt to connect to 10.x.x.x:7009 (virtualhost.virtualdomain.com) failed

Ask SAJ: What to do with Apache logs > 50GB?

Our site at $work is generating Apache logs that, when combined sequentially into one file, are larger than 50GB in size for one day's worth of traffic. AWStats' perl script pretty much chokes when working on this much data. Last I checked, Webalizer wasn't much different, and probably wouldn't scale up to that amount of data either. Does anyone out there have any advice on a commercial solution for Apache log analysis that can scale up like that?

Tip for "Split Components Across Domains" Performance Goal from Yahoo!

Just thought I'd pass this little tidbit out there - we fixed it by pure luck on the first try.

Yahoo unselfishly provides a document titled Best Practices for Speeding Up Your Website. While some of the rules offered there aren't applicable for all sites, it's a great document and if you run a website, you should read it.

Apache 2.2.12 - 2.2.13 and Solaris 10 Bug Nastiness

At work, I've been working on an upgrade from a custom-compiled version of Apache 2.0.x to the Sun-provided Glassfish Webstack 1.5.  I spent about a week troubleshooting what I thought was configuration issue, only to finally find it's a bug way upstream in Apache 2.2.12+.  This bug only affects Solaris 10, and is near-impossible to reproduce.  If you use Solaris 10 and Apache, read on so you don't waste a week of your life like I did.

Forcing Apache's mod_deflate module to compress JSP's from Weblogic

This is one of those "note for myself, and maybe it will help someone else" posts.  When you use Apache and mod_weblogic as a frontend to a WebLogic application server, you will likely want to compress your output.  It makes sense to put the load of compression on the webservers, since the application servers are busy doing other things.

Backup LAMP Stacks with LVM Snapshots

I've done a lot with LVM in the past, but up until now had never really played around with LVM snapshots. I recently used LVM snapshots to implement a "hot backup" of my LAMP stack running this blog. I quote "hot backup" because, while mysql is indeed running, I do have to place a read lock on all tables for a second or two. You don't need to do this if you're using Innodb, but you do if you use the MyISAM engine (which Drupal does by default).

Reporting Chrome usage via AWStats

AWStats is a great tool to analyze your Apache logs. Unless you've been living under a rock, there's a new browser in town - Chrome. Until you tell AWStats how to break it out for you, you won't see any statistics for it. Read on for how to modify AWStats so that it can detect the Chrome browser.

I'm assuming that $AWSTATS_HOME is the root of where you installed AWStats
First, let's fetch the favicon so it can be displayed all pretty:

Mozilla Weave Setup on CentOS 5.2

Mozilla Weave is a project from Mozilla Labs that aims to keep all of your browser data synced between all of your PC's.  The now defunct Google Browser Sync used to do this, as does Foxmarks.  Although Weave is still in it's infancy, it's been very promising thus far.  However, many of the users of Mozilla's own Weave server complain that the service is very slow.  The beauty of Weave is that it uses the standard protocol WebDAV to sync it's data. 

Quick & Easy Apache SSL on CentOS

Follow the jump to find out how you can quickly and easily setup your own SSL certificate and install it into Apache on CentOS/RHEL.

First, we need to install the crypto-utils package, which gives us the super-handy genkey command.  We'll also pull in mod_ssl at the same time:

yum install crypto-utils mod_ssl

With that out of the way, let's run genkey for our sample domain, www.mydomain.com:

Simple & Effective Apache+MySQL Backups for your Blog/CMS

As part of setting up my new Linode host, I needed a quick, easy, and maintanable way to create backups of my LAMP webapps.  Follow the jump to see how I set up my backup strategy.

DISCLAIMER: I make no guarantees to the effectiveness of this script. It works for me, and it should work for you, but it is up to you to test it! Also note, you need to have SSH access and root privileges to your server.

Pages

Subscribe to SysAdmin's Journey RSS